dynamic page with uiViewRoot

javax.faces.component.UIViewRoot root = FacesContext.getCurrentInstance().getViewRoot();

UIComponent form = root.findComponent("form1").findComponent("gridPanel1");

List children = form.getChildren();

for (Term t: terms)

{

for(TextField tf:t.getLetters()){

children.add(tf);

}

children.add(t.getB_term());

}

This code works fine, but without a gridPanel it doesn't work! And now i would like to know why that is so?

[703 byte] By [schaeflia] at [2007-11-27 3:40:39]
# 1
This answer also applies to this: http://forum.java.sun.com/thread.jspa?threadID=5164134
BalusCa at 2007-7-12 8:44:06 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 2
ok, that helped, thank you
schaeflia at 2007-7-12 8:44:06 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...