I tried to use the binding attribute to bind a component in the page to an object in a backing bean but, if I do so, when I refresh the page the component just disappears: the content is displayed but no style or position is applied.
It happens with p:dialog and p:panel.
I just used the binding as I always do in JSF: do I need to do something extra to use this feature with primefaces?
here is my code:
in the page:
Code: Select all
<p:panel binding="#{Bean.panel}" id="panel" >fasgasg</p:panel>
Code: Select all
import org.primefaces.component.panel.Panel;
/**
*
* @author eve
*/
public class Bean {
private Panel panel;
public Bean(){
}
/**
* @return the panel
*/
public Panel getPanel() {
return panel;
}
/**
* @param panel the panel to set
*/
public void setPanel(Panel panel) {
this.panel = panel;
}
}
Eve