Package javax.faces.component

Examples of javax.faces.component.UIComponent.findComponent()


        Assert.assertNotNull(panelGroup1);
        UINamingContainer compositeComponent1 = (UINamingContainer) panelGroup1.getChildren().get(0);
        Assert.assertNotNull(compositeComponent1);
        UIComponent facet1 = compositeComponent1.getFacet(UIComponent.COMPOSITE_FACET_NAME);
        Assert.assertNotNull(facet1);
        HtmlCommandLink link = (HtmlCommandLink) facet1.findComponent("link");
        Assert.assertNotNull(link);
        Assert.assertEquals(0, link.getClientBehaviors().size());
        /*
        StringWriter sw = new StringWriter();
        MockResponseWriter mrw = new MockResponseWriter(sw);
View Full Code Here


      if (from == null)
        return null;

      if (!(from instanceof NamingContainer))
        throw new IllegalArgumentException();
      return from.findComponent(id.substring(separatorIndex + 1));
    }
  }


View Full Code Here

                    {
                        break;
                    }
                    else
                    {
                        forComponent = nextParent.findComponent(componentId);
                    }
                    if (forComponent != null)
                    {
                        break;
                    }
View Full Code Here

        while (children.hasNext())
        {
            UIComponent nextChild = children.next();
            if (nextChild instanceof NamingContainer)
            {
                foundChild = nextChild.findComponent(searchChildId);
            }
            if (foundChild == null)
            {
                searchDownwardsForChildComponentWithId(nextChild, searchChildId);
            }
View Full Code Here

    UIComponent target = null;
    for (Iterator iter = root.getFacetsAndChildren(); iter.hasNext();) {
      UIComponent child = (UIComponent) iter.next();
      if (child instanceof NamingContainer) {
        try {
          target = child.findComponent(id);
        } catch (IllegalArgumentException iae) {
          continue;
        }
      }
      if (target == null) {
View Full Code Here

        // component for component identified by
        // 'forComponent'
        while (currentParent != null) {
          // If the current component is a NamingContainer,
          // see if it contains what we're looking for.
          status = currentParent.findComponent(statusId);
          if (status != null)
            break;
          // if not, start checking further up in the view
          currentParent = currentParent.getParent();
        }
View Full Code Here

    UIComponent target = null;
    for (Iterator iter = root.getFacetsAndChildren(); iter.hasNext();) {
      UIComponent child = (UIComponent) iter.next();
      if (child instanceof NamingContainer) {
        try {
          target = child.findComponent(id);
        } catch (IllegalArgumentException iae) {
          continue;
        }
      }
      if (target == null) {
View Full Code Here

  private void applyConverterPattern(FacesContext facesContext, UIPopup popup, String converterPattern) {
    UIComponent box = (UIComponent) popup.getChildren().get(0);
    UIComponent timePanel = box.findComponent("timePanel");
    if (converterPattern != null && (converterPattern.indexOf('h') > -1 || converterPattern.indexOf('H') > -1)) {
      UITime time = (UITime) timePanel.findComponent("time");
      Measure popupHeight = popup.getCurrentHeight();
      popupHeight = popupHeight.add(getResourceManager().getThemeMeasure(facesContext, time, "preferredHeight"));
      popup.setHeight(popupHeight);
      DateTimeConverter dateTimeConverter
          = (DateTimeConverter) facesContext.getApplication().createConverter(DateTimeConverter.CONVERTER_ID);
View Full Code Here

      if (from == null)
        return null;

      if (!(from instanceof NamingContainer))
        throw new IllegalArgumentException();
      return from.findComponent(id.substring(separatorIndex + 1));
    }
  }


View Full Code Here

            // component for component identified by
            // 'forComponent'
            while (currentParent != null) {
                // If the current component is a NamingContainer,
                // see if it contains what we're looking for.
                result = currentParent.findComponent(forComponent);
                if (result != null) {
                    break;
                }
                // if not, start checking further up in the view
                currentParent = currentParent.getParent();
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.