[
http://www.stripesframework.org/jira/browse/STS-701?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12373#comment-12373
]
Anthony DePalma commented on STS-701:
-------------------------------------
I agree, this would be very helpful
> 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.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
------------------------------------------------------------------------------
Get a FREE DOWNLOAD! and learn more about uberSVN rich system,
user administration capabilities and model configuration. Take
the hassle out of deploying and managing Subversion and the
tools developers use with it. http://p.sf.net/sfu/wandisco-d2d-2
_______________________________________________
Stripes-development mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/stripes-development