Package org.apache.wicket.markup

Examples of org.apache.wicket.markup.MarkupException


    final IDebugSettings debugSettings = getApplication().getDebugSettings();
    if (debugSettings.isLinePreciseReportingOnNewComponentEnabled())
    {
      setMetaData(CONSTRUCTED_AT_KEY,
        ComponentStrings.toString(this, new MarkupException("constructed")));
    }

    if (model != null)
    {
      setModelImpl(wrap(model));
View Full Code Here


  public final void internalRenderComponent()
  {
    final IMarkupFragment markup = getMarkup();
    if (markup == null)
    {
      throw new MarkupException("Markup not found. Component: " + toString());
    }

    final MarkupStream markupStream = new MarkupStream(markup);

    // Get mutable copy of next tag
View Full Code Here

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

    final Page page = findPage();
    if (page != null)
    {
View Full Code Here

            .append(component.getClass().getSimpleName())
            .append(" Components only raw markup is allow in between the tags but not ")
            .append("other Wicket Component. Component: ")
            .append(component.toString());

          throw new MarkupException(markupStream, msg.toString());
        }
      }
    }

    renderAssociatedMarkup(component);
View Full Code Here

  {
    super(id);

    if (childId == null)
    {
      throw new MarkupException(
        "You most likely forgot to register the EnclosureHandler with the MarkupParserFactory");
    }

    this.childId = childId;
  }
View Full Code Here

      {
        renderedComponents = new HashSet<Component>();
      }
      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

    getApplication().notifyComponentInstantiationListeners(this);

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

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

  {
    Class pageClass = BorderTestHierarchyPage_4.class;

    System.out.println("=== " + pageClass.getName() + " ===");

    MarkupException markupException = null;
    try
    {
      tester.startPage(pageClass);
    }
    catch (MarkupException e)
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

    this.model = wrap(model);

    final IDebugSettings debugSettings = Application.get().getDebugSettings();
    if (debugSettings.isLinePreciseReportingOnNewComponentEnabled())
    {
      setMetaData(CONSTRUCTED_AT_KEY, Strings.toString(this, new MarkupException(
          "constructed")));
    }
  }
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.