问题
I have a prototype small application built using JSF 2.0 with Primefaces 3.4.2., Spring 3 and Hibernate 4
For ManagedBeans I am using scope as @ViewAccessScoped
. I have noticed that while doing pagination in datatables and selection of rows, same view session is used for all sessions, i.e. if I select 3rd row in datatable using Chrome and if I open another browser session using Firefox or Internet Explorer, I can see the same session with 3rd row being selected of datatable.
What could be the reason for this? How can I make sure that different sessions should be created for different users (sessions)
This is how it is defined in ManagedBeans
@Named("myMB")
@ViewAccessScoped
public class EmployeeController implements Serializable {
Package name for ViewAccessScoped
is
org.apache.myfaces.extensions.cdi.core.api.scope.conversation.ViewAccessScoped
Any insight or help on this are highly appreciable.
来源:https://stackoverflow.com/questions/16836113/codi-viewaccessscoped-session-behavior