public static UIComponent findChild(UIComponent parent,String id){
  int sz=parent.getChildCount();
  if (sz > 0) {
    UIComponent c=null;
    List cl=parent.getChildren();
    while (--sz >= 0) {
      c=(UIComponent)cl.get(sz);
      if (id.equals(c.getId())) {
        return c;
      }
    }
  }
  return null;
}

public static UIComponent findChild ( UIComponent parent , String id ) { int sz = parent . getChildCount ( ) ; if ( sz > 0 ) { UIComponent c = null ; List cl = parent . getChildren ( ) ; while ( -- sz >= 0 ) { c = ( UIComponent ) cl . get ( sz ) ; if ( id . equals ( c . getId ( ) ) ) { return c ; } } } return null ; }
a lighter - weight version of uicomponent ' s findchild .
