[
https://issues.apache.org/jira/browse/WICKET-2428?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Juergen Donnerstag resolved WICKET-2428.
----------------------------------------
Resolution: Fixed
Fix Version/s: 1.5-M1
1.4.5
Assignee: Juergen Donnerstag
I guess I forgot to update jira. It's in 1.4 and 1.5 already
> AbstractSingleSelectChoice: custom resource key for null option
> ---------------------------------------------------------------
>
> Key: WICKET-2428
> URL: https://issues.apache.org/jira/browse/WICKET-2428
> Project: Wicket
> Issue Type: Improvement
> Components: wicket
> Affects Versions: 1.4.0
> Reporter: Fridolin Jackstadt
> Assignee: Juergen Donnerstag
> Fix For: 1.4.5, 1.5-M1
>
>
> Is it possible to refactor AbstractSingleSelectChoice like shown below? To be
> able to override getNullOptionKey would give a great value for us.
> This would allow to have the display-values of null-options in a single
> properties file for whole project even if ids of some choices with different
> null-option display-values are equal.
> protected String getNullOptionKey() {
> return getId() + ".nullValid";
> }
> if (isNullValid())
> {
> // Null is valid, so look up the value for it
> String option =
> getLocalizer().getStringIgnoreSettings(getNullOptionKey(), this,
> null, null);
> if (Strings.isEmpty(option))
> {
> option = getLocalizer().getString("nullValid", this, "");
> }
> ....
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.