Question: Anyone experienced this ? Any visible/potential cause ?
Two buttons on a page:
button "a" ) statically defined in xhtml
button "b" ) derived from dynamic binding within a panel
Code: Select all
<p:outputPanel id="mainContent" rendered="true">
<mylib:selectorButton attrib_a="111" attrib_b="222" attrib_c="333" />
<p:panel binding="#{myBean.myDynamicPanel}" />
</p:outputPanel>
Code: Select all
public UIComponent getComponent() {
org.primefaces.component.panel.Panel uiPrimePanel = new org.primefaces.component.panel.Panel();
uiPrimePanel.setId("blah123");
uiPrimePanel.setRendered(true);
uiPrimePanel.setHeader("test panel");
MyLibButton testButton = new MyLibSelectorButton(this.facesContext, "111", "222", "333");
uiPrimePanel.getChildren().add(testButton.getComponent());
return uiPrimePanel;
}
The issue is not specific to only binding. If the bound component is outside a panel, it will work. As soon as it is inside a container such as a primefaces TabView or Panel, it will not work anymore.
Any help/hint/suggestion will be greatly appreciated. Thanks.