Package org.apache.wicket.core.request.handler

Examples of org.apache.wicket.core.request.handler.ComponentNotFoundException


    final String id = tag.getAttribute(getWicketNamespace(markupStream) + WICKET_FOR).trim();

    Component component = findRelatedComponent(container, id);
    if (component == null)
    {
      throw new ComponentNotFoundException("Could not find form component with id '" + id +
        "' while trying to resolve wicket:for attribute");
    }

    if (!(component instanceof ILabelProvider))
    {
View Full Code Here


    final String id = tag.getAttribute(getWicketNamespace(markupStream) + WICKET_FOR).trim();

    Component component = findRelatedComponent(container, id);
    if (component == null)
    {
      throw new ComponentNotFoundException("Could not find form component with id '" + id +
        "' while trying to resolve wicket:for attribute");
    }

    if (!(component instanceof ILabelProvider))
    {
View Full Code Here

      }
      if (related == null)
      {
        // ...or it might just not be available.
        String forAttr = forAttributeValue != null ? " for=\"" + forAttributeValue + "\"" : "";
        throw new ComponentNotFoundException("no related component found for <wicket:label"+forAttr+">");
      }
      else
      {
        // ...found the form component, so we can return our label.
        return new TextLabel("label" + container.getPage().getAutoIndex(), related);
View Full Code Here

TOP

Related Classes of org.apache.wicket.core.request.handler.ComponentNotFoundException

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.