webtier@glassfish.java.net

Usage and purpose of custom scoped managed beans

From: <webtier_at_javadesktop.org>
Date: Tue, 02 Feb 2010 01:20:54 PST

I haven't found a good example of a situation where one would need a custom scoped managed bean.

When an application provides means to book a certain object and this has a flow with a couple of pages. Would a managed bean with custom scope be the right way to go?

The Seam framework would suggest to use a conversation scope which has no jsf 2 equivalent . In case a custom scope could (or should) be used to back this scenario I would like to know the preferred way.

For examples is it necessary to write a custom EL-resolver or is it possible to define a non scoped managed bean that implements the Map interface? Examples show how to start a scope but not how to explicitly end it.

Any advise and/or suggestions are welcome.
[Message sent by forum member 'vdweij' (vdweij_at_hotmail.com)]

http://forums.java.net/jive/thread.jspa?messageID=384220