Skip to content

Commit

Permalink
Changed ViewState saving to client to prevent ViewExpiredExceptions when
Browse files Browse the repository at this point in the history
idle
  • Loading branch information
gastaldi committed Jun 9, 2014
1 parent f3d02a5 commit da87add
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/main/webapp/WEB-INF/web.xml
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,9 @@
<param-value>true</param-value>
</context-param>
<context-param>
<description>Needed to avoid ViewExpiredExceptions</description>
<param-name>javax.faces.STATE_SAVING_METHOD</param-name>
<param-value>server</param-value>
<param-value>client</param-value>
</context-param>
<welcome-file-list>
<welcome-file>index.html</welcome-file>
Expand Down Expand Up @@ -61,4 +62,10 @@
<param-name>javax.faces.PROJECT_STAGE</param-name>
<param-value>Development</param-value>
</context-param>
<env-entry>
<description>Needed for JSF 2.2</description>
<env-entry-name>jsf/ClientSideSecretKey</env-entry-name>
<env-entry-type>java.lang.String</env-entry-type>
<env-entry-value>am9kZXRlcHV0b2hhY2tlcg==</env-entry-value>
</env-entry>
</web-app>

0 comments on commit da87add

Please sign in to comment.