Package org.apache.wicket.markup

Examples of org.apache.wicket.markup.MarkupException


    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


  {
    Class<? extends Page> pageClass = BorderTestHierarchyPage_4.class;

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

    MarkupException markupException = null;
    try
    {
      tester.startPage(pageClass);
    }
    catch (MarkupException e)
View Full Code Here

    final IDebugSettings debugSettings = getApplication().getDebugSettings();
    if (debugSettings.isLinePreciseReportingOnNewComponentEnabled() && debugSettings.getComponentUseCheck())
    {
      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

      {
        renderedComponents = new HashSet<Component>();
      }
      if (renderedComponents.add(component) == false)
      {
        throw new MarkupException(
          "The component " +
            component +
            " was rendered already. You can render it only once during a render phase. Class relative path: " +
            component.getClassRelativePath());
      }
View Full Code Here

  {
    // Get the markup to search for the fragment markup
    IMarkupFragment markup = chooseMarkup(container);
    if (markup == null)
    {
      throw new MarkupException("The fragments markup provider has no associated markup. " +
        "No markup to search for fragment markup with id: " + markupId);
    }

    // Search for the fragment markup
    IMarkupFragment childMarkup = markup.find(markupId);
View Full Code Here

      providerMarkupStream.nextOpenTag();
    }

    if (providerMarkupStream.hasMore() == false)
    {
      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

  {
    // Border require an associated markup resource file
    IMarkupFragment markup = getAssociatedMarkup();
    if (markup == null)
    {
      throw new MarkupException("Unable to find associated markup file for Border: " +
        this.toString());
    }

    // Find <wicket:border>
    IMarkupFragment childMarkup = null;
View Full Code Here

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

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

      return markup;
    }

    if (parent == null)
    {
      throw new MarkupException(
        "Can not determine Markup. Component is not yet connected to a parent. " +
          toString());
    }

    markup = parent.getMarkup(this);
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.