Pass ActionBeanContext or ActionBean to TypeConverterFactory getInstance method
-------------------------------------------------------------------------------
Key: STS-701
URL: http://www.stripesframework.org/jira/browse/STS-701
Project: Stripes
Issue Type: Improvement
Components: Validation
Affects Versions: Release 1.5.1
Environment: All
Reporter: Matt Brock
Priority: Minor
It would be extremely helpful to have access to the context or the ActionBean
in TypeConverters. This would allow converters to access session-level
properties, which could allow developers to extend TypeConverters to
domain-level objects that require authentication. Currently all this logic has
to be in the ActionBean, which leads to a lot of code duplication.
The converters are passed the locale which already comes straight from the
actionBean.actionBeanContext
(net.sourceforge.stripes.controller.DefaultActionBeanPropertyBinder, line 755).
As it stands the developer has to extend both the
DefaultActionBeanPropertyBinder and the DefaultTypeConverterFactory (not the
end of the world, certainly, but does go against the Stripes "it-just-works"
way of doing things).
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://www.stripesframework.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now. http://p.sf.net/sfu/bobj-july
_______________________________________________
Stripes-development mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/stripes-development