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?

