-
1. java.io.NotSerializableException: org.richfaces.component.SavedState
iabughosh Apr 21, 2011 9:40 AM (in response to ainanmis)what is the scope of your provizyBean
-
2. java.io.NotSerializableException: org.richfaces.component.SavedState
ainanmis Apr 21, 2011 9:43 AM (in response to iabughosh)session
-
3. java.io.NotSerializableException: org.richfaces.component.SavedState
iabughosh Apr 21, 2011 9:43 AM (in response to ainanmis)try implementing serializable
-
4. Re: java.io.NotSerializableException: org.richfaces.component.SavedState
ainanmis Apr 21, 2011 9:45 AM (in response to ainanmis)This code didn't work in my project, but I created a test project. It worked there. I didn't understand because I put same library to test project.
-
5. Re: java.io.NotSerializableException: org.richfaces.component.SavedState
ainanmis Apr 21, 2011 9:46 AM (in response to ainanmis)I tried to implement Serializable interface. It didn't work.
-
6. Re: java.io.NotSerializableException: org.richfaces.component.SavedState
iabughosh Apr 21, 2011 9:50 AM (in response to ainanmis)try adding this to your web.xml and insure that your bean is serializable
<context-param>
<param-name>javax.faces.STATE_SAVING_METHOD</param-name>
<param-value>client</param-value>
</context-param>
-
7. Re: java.io.NotSerializableException: org.richfaces.component.SavedState
ainanmis Apr 21, 2011 10:02 AM (in response to iabughosh)It is already added to project and bean is serializable. Scope is session. test project has not context-param in its web.xml above and it is working.
-
8. Re: java.io.NotSerializableException: org.richfaces.component.SavedState
ainanmis Apr 21, 2011 10:23 AM (in response to ainanmis)I removed
<context-param>
<param-name>javax.faces.STATE_SAVING_METHOD</param-name>
<param-value>client</param-value>
</context-param>
and tree worked , but other pages gave error "view expired".
-
9. Re: java.io.NotSerializableException: org.richfaces.component.SavedState
ainanmis Apr 21, 2011 10:43 AM (in response to ainanmis)1 of 1 people found this helpfulI solved view expired problem adding navigation rule to face-config.xml. I assume that in navigation rules must be written in JSF 2.X when javax.faces.STATE_SAVING_METHOD = server.
-
10. java.io.NotSerializableException: org.richfaces.component.SavedState
nbelaevski Apr 22, 2011 12:20 PM (in response to ainanmis)Hi Abdulkerim,
Both client and server state saving should work with navigation rules fine.