An outputpanel (primefaces 3.4.1) have binding attribute
<p:outputPanel layout="block" autoUpdate="true" binding="#{bean.outputPanel}"/>
In the bean htmlInputText created dynamically and attached with outputpanel
Outputpanel Getter method
private OutputPanel outputPanel=new OutputPanel();
public final OutputPanel getOutputPanel() {
outputPanel = (OutputPanel) app
.createComponent(OutputPanel.COMPONENT_TYPE);
return outputPanel;
}
htmlInputText Binding
outputPanel.getChildren().add(new HTMLInputText());
This generates a inputtext perfectly but after creating a inputtext if I refresh the page its getting disappeared. Even for an ajax request if I update the outputpanel components getting disappeared.