> -----Original Message-----
> From: Mario Ivankovits [mailto:[EMAIL PROTECTED] 
> Subject: managed bean creation factory
> Are there plans in the future JSF spec to make the managed 
> bean creation factory configureable?
> For some reason I would like to read a managed bean from a 
> serialized store or use a specialized factory to create the 
> bean instead of the simple "new" operation.

(Maybe should be moved to the user list...)
My recipe (for better or worse) is to use Spring with JSF-Spring, which
offers the same functionality. The latest JSF-Spring, 3.0.0M3, has fixed
all my little issues with it. The Spring bean creation is just much more
flexible than JSF's and dependency injection offers a nice way to
separate my UI backing beans from business beans. The one architectural
issue is how to generically deal with null beans and exceptions that
using factories inevitably cause. At the moment I'm using a
TilesController to do forwarding in cases where necessary parameters for
factory operations were not passed in and the factory would throw an
exception and/or null objects. Not absolutely convinced that's the best
way though, and this of course only works with Tiles, but the latter is
fine in my case.

Kalle

Reply via email to