it is possible to add components dynamically.
Create a container bean like this one:
public class ComplexBean
{
protected UIComponent component;
public ComplexBean()
{
component = new UIPanel();
}
public UIComponent getComponent()
{
return component;
}
public void setComponent(UIComponent component)
{
this.component = component;
}
}
Use component instance binding in your page, for
instance
<h
anelGrid binding="#{ComplexBean.component}"/>
(The bean should be configured as a managed bean).
Now if you add components to your
ComplexBean.getComponent(), they will appear on the
page. You can add the dynamically/programmatically.