2014年4月8日 星期二
2014年4月3日 星期四
MyFaces partial state saving
When using TomEE, MyFaces 2.1 has problems in that many PrimeFaces components often do not work unless:
- Use SessionScoped instead of ViewScoped - always works
- Set javax.faces.PARTIAL_STATE_SAVING to false
These have performance implications. Need to try out:
<context-param>
<param-name>javax.faces.FULL_STATE_SAVING_VIEW_IDS</param-name>
<param-value>/some.xhtml,/other.xhtml</param-value>
</context-param>
as suggested in http://stackoverflow.com/questions/10337015/should-partial-state-saving-be-set-to-false
Also does not work.
After experiments:
After experiments:
- Set javax.faces.STATE_SAVING_METHOD to client
- Replace all p:commandButton with p:commandLink with h: counterparts + f:ajax. Strange, don't know why
訂閱:
意見 (Atom)