Package org.apache.wicket.markup

Examples of org.apache.wicket.markup.MarkupNotFoundException


      throw ex;
    }
    catch (WicketRuntimeException ex)
    {
      // throw exception since there is no associated markup
      throw new MarkupNotFoundException(
        exceptionMessage("Markup of type '" + getMarkupType().getExtension() +
          "' for component '" + getClass().getName() + "' not found." +
          " Enable debug messages for org.apache.wicket.util.resource to get a list of all filenames tried"),
        ex);
    }
View Full Code Here


  public IMarkupFragment getMarkup(final Component child)
  {
    IMarkupFragment markup = getAssociatedMarkup();
    if (markup == null)
    {
      throw new MarkupNotFoundException(
        "Failed to find markup file associated with panel. Panel: " + this.toString());
    }

    // Find <wicket:panel>
    IMarkupFragment panelMarkup = findPanelTag(markup);
    if (panelMarkup == null)
    {
      throw new MarkupNotFoundException(
        "Expected to find <wicket:panel> in associated markup file. Markup: " +
          markup.toString());
    }

    // If child == null, than return the markup fragment starting with <wicket:panel>
View Full Code Here

    }

    final MarkupStream providerMarkupStream = chooseMarkupStream(markupStream);
    if (providerMarkupStream == null)
    {
      throw new MarkupNotFoundException(
        "Fragment: No markup stream found for providing markup container " +
          markupProvider.toString() + ". Fragment: " + toString());
    }

    renderFragment(providerMarkupStream, openTag);
View Full Code Here

      }
    }

    if (childMarkup == null)
    {
      throw new MarkupNotFoundException("No Markup found for Fragment " + markupId +
        " in providing markup container " + markupProvider.toString());
    }

    if (child == null)
    {
View Full Code Here

    public static IMarkupFragment getMarkup(final MarkupContainer parent, final Component child)
    {
      IMarkupFragment markup = parent.getAssociatedMarkup();
      if (markup == null)
      {
        throw new MarkupNotFoundException("Failed to find markup file associated. " +
          parent.getClass().getSimpleName() + ": " + parent.toString());
      }

      // Find <wicket:panel>
      IMarkupFragment panelMarkup = findPanelTag(markup);
      if (panelMarkup == null)
      {
        throw new MarkupNotFoundException(
          "Expected to find <wicket:panel> in associated markup file. Markup: " +
            markup.toString());
      }

      // If child == null, than return the markup fragment starting with <wicket:panel>
View Full Code Here

  {
    // Step 1: Make sure there is a markup available for the Component
    IMarkupFragment markup = getMarkup();
    if (markup == null)
    {
      throw new MarkupNotFoundException("Markup not found for Component: " + toString());
    }

    // Step 2: A markup stream based on the markup should yield the same result.
    // We want to use the new markup stream
    MarkupStream markupStream = new MarkupStream(markup);
View Full Code Here

    }

    final MarkupStream providerMarkupStream = chooseMarkupStream(markupStream);
    if (providerMarkupStream == null)
    {
      throw new MarkupNotFoundException(
        "Fragment: No markup stream found for providing markup container " +
          markupProvider.toString() + ". Fragment: " + toString());
    }

    renderFragment(providerMarkupStream, openTag);
View Full Code Here

    final Markup baseMarkup = getBaseMarkup(container, markup, enforceReload);

    if (baseMarkup == Markup.NO_MARKUP)
    {
      throw new MarkupNotFoundException(
        "Base markup of inherited markup not found. Component class: " +
          markup.getMarkupResourceData()
            .getResource()
            .getContainerInfo()
            .getContainerClass()
View Full Code Here

          return markup;
        }
      }

      // Don't know how to find the markup
      throw new MarkupNotFoundException(
        "Can not determine Markup. Component is not yet connected to a parent. " +
          toString());
    }

    // Ask the parent for find the markup for me
View Full Code Here

  {
    // Make sure there is a markup available for the Component
    IMarkupFragment markup = getMarkup();
    if (markup == null)
    {
      throw new MarkupNotFoundException("Markup not found for Component: " + toString());
    }

    // MarkupStream is an Iterator for the markup
    MarkupStream markupStream = new MarkupStream(markup);
View Full Code Here

TOP

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

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.