[
https://issues.apache.org/jira/browse/WICKET-1157?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Martin Makundi updated WICKET-1157:
-----------------------------------
Attachment: type-choice-patch.txt
TypeChoiceRenderer.java
TypeChoiceModel.java
However. EnumChoiceRenderer can render any TYPE so that's why I have proposed
TypeChoiceRenderer. You can directly use it with existing wicket and no need
for specific dropdown.
Component is optional so it can be given optionally to the renderer.
It is coupled with TypeChoiceModel so that they fetch the localized label using
the same method. I uploaded that too. I also provided factory methods so that
it is easier to construct these objects.
I have also attached a patch.
**
Martin
> Generic internationalization for Enums
> --------------------------------------
>
> Key: WICKET-1157
> URL: https://issues.apache.org/jira/browse/WICKET-1157
> Project: Wicket
> Issue Type: New Feature
> Components: wicket
> Affects Versions: 1.4-M1
> Reporter: Bruno Borges
> Fix For: 1.5-M1
>
> Attachments: EnumDropDownChoice.java, EnumLabel.java, Enums.patch,
> type-choice-patch.txt, TypeChoiceModel.java, TypeChoiceRenderer.java
>
>
> Support internationalization for Enums for any Component in the future
> (Wicket's Java 5+ version). I attached two components that does this
> independently. But maybe it would be a good idea to abstract this.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.