Package org.apache.wicket.markup

Examples of org.apache.wicket.markup.MarkupException


      {
        renderedComponents = new HashSet();
      }
      if (renderedComponents.add(component) == false)
      {
        throw new MarkupException("The component " + component +
            " has the same wicket:id as another component already added at the same level");
      }
      if (log.isDebugEnabled())
      {
        log.debug("Rendered " + component);
View Full Code Here


      if (wtag.isMessageTag())
      {
        String messageKey = wtag.getAttributes().getString("key");
        if ((messageKey == null) || (messageKey.trim().length() == 0))
        {
          throw new MarkupException(
              "Wrong format of <wicket:message key='xxx'>: attribute 'key' is missing");
        }

        // If the key can't be resolved and the default is null, an
        // exception will be thrown. Instead, we default to a unique
View Full Code Here

    // Find the markup fragment
    int index = providerMarkupStream.findComponentIndex(null, markupId);
    if (index == -1)
    {
      throw new MarkupException("Markup of component class `" +
          providerMarkupStream.getContainerClass().getName() +
          "` does not contain a fragment with wicket:id `" + markupId + "`. Context: " +
          toString());
    }
View Full Code Here

  {
    MarkupStream markupStream = getAssociatedMarkupStream(true);
    int index = markupStream.findComponentIndex(markupId, path);
    if (index == -1)
    {
      throw new MarkupException("Markup of component class `" +
          markupStream.getContainerClass().getName() +
          "` does not contain a fragment with wicket:id `" + markupId + "`. Context: " +
          toString());
    }
    markupStream.setCurrentIndex(index);
View Full Code Here

    }

    final IDebugSettings debugSettings = Application.get().getDebugSettings();
    if (debugSettings.isLinePreciseReportingOnAddComponentEnabled())
    {
      component.setMetaData(ADDED_AT_KEY, Strings.toString(component, new MarkupException(
          "added")));
    }

    if (page != null)
    {
View Full Code Here

    getApplication().notifyComponentInstantiationListeners(this);

    final IDebugSettings debugSettings = Application.get().getDebugSettings();
    if (debugSettings.isLinePreciseReportingOnNewComponentEnabled())
    {
      setMetaData(CONSTRUCTED_AT_KEY, Strings.toString(this, new MarkupException(
        "constructed")));
    }
  }
View Full Code Here

    // Find the markup fragment
    int index = providerMarkupStream.findComponentIndex(null, markupId);
    if (index == -1)
    {
      throw new MarkupException("Markup of component class `" +
        providerMarkupStream.getContainerClass().getName() +
        "` does not contain a fragment with wicket:id `" + markupId + "`. Context: " +
        toString());
    }
View Full Code Here

  {
    MarkupStream markupStream = getAssociatedMarkupStream(true);
    int index = markupStream.findComponentIndex(markupId, path);
    if (index == -1)
    {
      throw new MarkupException("Markup of component class `" +
        markupStream.getContainerClass().getName() +
        "` does not contain a fragment with wicket:id `" + markupId + "`. Context: " +
        toString());
    }
    markupStream.setCurrentIndex(index);
View Full Code Here

    final Page page = findPage();

    final IDebugSettings debugSettings = Application.get().getDebugSettings();
    if (debugSettings.isLinePreciseReportingOnAddComponentEnabled())
    {
      component.setMetaData(ADDED_AT_KEY, Strings.toString(component, new MarkupException(
        "added")));
    }

    if (page != null)
    {
View Full Code Here

      if (wtag.isMessageTag())
      {
        String messageKey = wtag.getAttributes().getString("key");
        if ((messageKey == null) || (messageKey.trim().length() == 0))
        {
          throw new MarkupException(
            "Wrong format of <wicket:message key='xxx'>: attribute 'key' is missing");
        }

        final String id = "_message_" + container.getPage().getAutoIndex();
        MessageContainer label = new MessageContainer(id, messageKey);
View Full Code Here

TOP

Related Classes of org.apache.wicket.markup.MarkupException

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.