Question

We are using JSF with Primefaces on a IBM Websphere 8. My problem is, that if I have more Conversations in JSF, the ViewState expires. If a user works on two conversations and navigates to many pages, the buffer for viewstates (default 20 slots) is full and viewStates of the other conversation are deleted. So if I go back to the first conversation the viewState isn't there and I cannot work any more on this conversation.

Is there a posibility to save ViewStates in conversation or any other workaround? Setting javax.faces.STATE_SAVING_METHOD to client is not the best solution I think. Increasing org.apache.myfaces.NUMBER_OF_VIEWS_IN_SESSION dramatically is also not a really good solution, because of many sessions expected.

Was it helpful?

Solution

We solved it on our own. We take a PhaseListener and organize the views, so each conversation gets only one view-slot. Thats possible, because we disabled caching and so we do not need more than one view per conversation. Caching disabled is needed in our applications.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top