コード例 #1
0
 @SuppressWarnings({"UnusedDeclaration"})
 protected UIComponent findReparentedComponent(
     FaceletContext ctx, UIComponent parent, String tagId) {
   UIComponent facet = parent.getFacets().get(UIComponent.COMPOSITE_FACET_NAME);
   if (facet != null) {
     UIComponent newParent = facet.findComponent((String) parent.getAttributes().get(tagId));
     if (newParent != null) return ComponentSupport.findChildByTagId(newParent, tagId);
   }
   return null;
 }
コード例 #2
0
  @SuppressWarnings({"UnusedDeclaration"})
  protected UIComponent findChild(FaceletContext ctx, UIComponent parent, String tagId) {

    return ComponentSupport.findChildByTagId(parent, tagId);
  }