开发者

icefaces multiple window support for same session

i have application which made with ice:faces 开发者_JAVA技巧.. i want to make support of multiple window with same session is it possible in ice:faces ? in web.xml i have put the tag like that

<context-param>
<param-name>com.icesoft.faces.concurrentDOMViews</param-name>
<param-value>true</param-value>
</context-param>

I am able to open multiple window but problem is I can't make changes from both window concurrently.


From ICEfaces Documentation :

With concurrent DOM views enabled, each browser window is distinctly identified with a view number and DOM updates will be correctly applied to the appropriate window. This introduces some important considerations for the application data model. Managed beans in session scope can now be shared across multiple views simultaneously. This may be the desired scope for some states, but typically, presentation-related state is more appropriately kept in request scope.

Request scope : For typical view-related state, request-scope beans will persist through most user interaction but not through view changes. This is the recommended scope for ICEfaces applications that make use of multiple windows.

Session scope : For state that must be shared across views.

When you set parameter as true supports multiple views, but have to use request scoped beans. Probably forcing logout from current session if another window is opened.

If concurrent DOM views is configured, and multiple windows are created by the user, ICEfaces uses a single blocking connection to deliver asynchronous updates to all views in the session.

And when set as false supporting single view, the changes in a window gets reflected in another.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜