CODI ViewAccessScoped session behavior

强颜欢笑 提交于 2019-12-12 04:58:15

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!