I am having some trouble with <ui:composition> in an xhtml page(main.xhtml). Both Main.xhtml and ui:composition are using seperate viewscoped beans (mainbean, compositebean) for binding properties. There is a <h:commandbutton> inside ui:composition page;
When i click this command button, prerender method of compositebean get invoked but the action method was not been invoked. But when the mainbean was set to sessionscoped bean, it worked. Why this behaviour?
src attribute of <ui:composition> was dynamically binding from a viewscoped managed bean property:
<ui:include src="#{mainbean.linkURL}" id="composite"/>
. But when I hardcoded the src attribute of ui:composition, <h:commandbutton> invoked the action method correctly:<ui:include src="composite.xhtml"/>
.- If not specified the javax.faces.STATE_SAVING_METHOD in web.xml, which will be the default state saving mechanism?