[
http://www.stripesframework.org/jira/browse/STS-299?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Frederic Daoud closed STS-299.
------------------------------
Resolution: Fixed
Fix Version/s: Release 1.4.2
> Support for deep inner classes in options-enumeration
> -----------------------------------------------------
>
> Key: STS-299
> URL: http://www.stripesframework.org/jira/browse/STS-299
> Project: Stripes
> Issue Type: Improvement
> Components: Tag Library
> Affects Versions: Release 1.4.1
> Reporter: Andy
> Priority: Trivial
> Fix For: Release 1.4.2
>
>
> Currently the options-enumeration tag supports enums in a single-level inner
> class to be specified using dots ('.') only without dollars ('$'). (Refer to
> STS-253)
> So in the following, enum="xxx.enums.Outer.LevelOne" works, but
> enum="xxx.enums.Outer.Inner.LevelTwo" does not. The latter enum can still be
> specified as "xxx.enums.Outer$Inner$LevelTwo", which looks ugly.
> It will be better if the tag allows any number of dollars to be specified as
> dots.
> package xxx.enums;
> public class Outer {
> public static enum LevelOne { ONE, TWO }
> public static class Inner {
> public static enum LevelTwo { THREE, FOUR }
> }
> }
> One strategy would be to keep replacing the last (rightmost) dot with a
> dollar until ReflectUtil.findClass works or until there are no more dots (at
> which point, the original exception should be thrown). This code can be
> placed in a utility class (ReflectUtil.findClass itself looks good) and
> reused in case there are inner ActionBean classes to be specified in other
> tags (form, link, url, useActionBean) :)
--
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
------------------------------------------------------------------------------
Benefiting from Server Virtualization: Beyond Initial Workload
Consolidation -- Increasing the use of server virtualization is a top
priority.Virtualization can reduce costs, simplify management, and improve
application availability and disaster protection. Learn more about boosting
the value of server virtualization. http://p.sf.net/sfu/vmware-sfdev2dev
_______________________________________________
Stripes-development mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/stripes-development