2014年4月8日 星期二

Ubuntu 12.04 LTS 安裝 Joomla 3

按著 https://help.ubuntu.com/community/Joomla 進行,基本順利。但最好當所有檔案還是自己的時候 chmod 644 和 755,以及 nano libraries/joomla/filter/input.php 然後才 sudo chown -R www-data:www-data /var/www/joomla,這樣便不必sudo chown / nano了。

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:
  1. Use SessionScoped instead of ViewScoped - always works
  2. 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:

  1. Set javax.faces.STATE_SAVING_METHOD to client
  2. Replace all p:commandButton with p:commandLink with h: counterparts + f:ajax.  Strange, don't know why