For our applications we utilize the flowScope in preference to the session
given it's ability to clean-up and support multiple flowScopes for multiple
windows. So its an invaluable feature in Trinidad, but sadly it's only
possible via code to add new Managed Beans to the flowScope map.  This feels
like a step back from Dependency Injection.

So I was wondering if there would be a way we could provide a feature in
Trinidad to auto-register managed beans into the flowScope when they are
initially referenced.  Sadly there's no way to add a custom scope to the
managed bean declaration, but I was thinking we could perhaps piggy-back on
the instantiation of request scope beans, by using something like
annotations, (e.g. @TrinidadFlowScopeBean) would be placed into flowScope,
and then using a custom VariableResolver we could search this scope in
between looking in the request, and session scopes.  This wouldn't interfere
with the way flowScope is used today (and could be an optional feature), but
would make it more usable moving forward, and fit better with UI design
tools that provide value-binding wizards.

Obviously Annotations isn't the only option to accomplish this.

Thoughts?

Danny
--
Chordiant Software Inc.
www.chordiant.com

Reply via email to