I have a command button which i bind its action method.
<f:view >
<pm:page title="Title">
<pm:view id="viewId" swatch="c">
<p:outputPanel id="panelId">
<h:form id="formId">
<p:commandButton action="#{bean.actionMethod}" update="formId" value="Click" />
</h:form>
</p:outputPanel>
</pm:view>
</pm:page >
</f:view>
Inside action method. the navigation refers the same page. Some values are updated inside action method.
public String applyPeriod(String caller)
{
.....
retrun SAMEPAGE;
}
Every thing is ok. but the styles is not rendered. the page returns to the default styles.
Any idea how i can load the styles. I do not want to change URL by doing real refresh. i should managed it by ajax calls.
I trace the requests of the page. There is exactly no call for styles.
I use primefaces, primefaces mobile and it is a mobile page.