Package org.apache.wicket.markup

Examples of org.apache.wicket.markup.MarkupNotFoundException


      }
    }

    if (childMarkup == null)
    {
      throw new MarkupNotFoundException("No Markup found for Fragment " + markupId +
        " in providing markup container " + getMarkupProvider(container));
    }
    else
    {
      MarkupElement fragmentTag = childMarkup.get(0);
      if ((fragmentTag instanceof WicketTag && ((WicketTag)fragmentTag).isFragmentTag()) == false)
      {
        throw new MarkupNotFoundException("Markup found for Fragment '" + markupId
          + "' in providing markup container " + getMarkupProvider(container)
          + " is not a <wicket:fragment> tag");
      }
    }
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

  {
    // 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

    }

    if (throwException == true)
    {
      // throw exception since there is no associated markup
      throw new MarkupNotFoundException(
        "Markup of type '" +
          getMarkupType().getExtension() +
          "' for component '" +
          getClass().getName() +
          "' not found." +
View Full Code Here

      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

      throw ex;
    }
    catch (WicketRuntimeException ex)
    {
      // throw exception since there is no associated markup
      throw new MarkupNotFoundException(
        exceptionMessage("Markup of type '" + getMarkupType() + "' 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

          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

    }

    if (throwException == true)
    {
      // throw exception since there is no associated markup
      throw new MarkupNotFoundException(
        "Markup of type '" +
          getMarkupType().getExtension() +
          "' for component '" +
          getClass().getName() +
          "' not found." +
View Full Code Here

      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

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.