wicket-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Igor Vaynberg (JIRA)" <j...@apache.org>
Subject [jira] Assigned: (WICKET-330) CheckBox incorrectly converts its model value when a custom Boolean converter is installed
Date Thu, 01 Mar 2007 16:21:51 GMT

     [ https://issues.apache.org/jira/browse/WICKET-330?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Igor Vaynberg reassigned WICKET-330:
------------------------------------

    Assignee: Johan Compagner

> CheckBox incorrectly converts its model value when a custom Boolean converter is installed
> ------------------------------------------------------------------------------------------
>
>                 Key: WICKET-330
>                 URL: https://issues.apache.org/jira/browse/WICKET-330
>             Project: Wicket
>          Issue Type: Bug
>          Components: wicket
>    Affects Versions: 2.0
>            Reporter: Martin Benda
>         Assigned To: Johan Compagner
>         Attachments: checkbox-getModelValue.patch
>
>
> When I use a custom localized Boolean converter (using my custom IConverterLocator) that
converts "Ano" to true and "Ne" to false (Czech words for "yes" and "no") the CheckBox with
'true' getModelObject() will render unchecked. The problem is that CheckBox uses Strings.isTrue()
to convert a value returned by getModelObjectAsString() which uses converters. The result
is that true is incorrectly converted to false...
> true -> convertToString() -> "Ano" -> Strings.isTrue() -> false

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message