You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by "Arthur Bogaart (JIRA)" <ji...@apache.org> on 2010/03/18 13:51:27 UTC
[jira] Updated: (WICKET-2787) ValueMap.getAsBoolean(key,
defaultValue) always returns false for non-existing keys, instead of the
defaultValue
[ https://issues.apache.org/jira/browse/WICKET-2787?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Arthur Bogaart updated WICKET-2787:
-----------------------------------
Attachment: valuemap_trunk.patch
valuemap_1.4.x.patch
Patch for trunk and 1.4.x branch included.
> ValueMap.getAsBoolean(key, defaultValue) always returns false for non-existing keys, instead of the defaultValue
> ----------------------------------------------------------------------------------------------------------------
>
> Key: WICKET-2787
> URL: https://issues.apache.org/jira/browse/WICKET-2787
> Project: Wicket
> Issue Type: Bug
> Components: wicket
> Affects Versions: 1.4.7
> Reporter: Arthur Bogaart
> Priority: Minor
> Fix For: 1.4.8, 1.5-M1
>
> Attachments: valuemap_1.4.x.patch, valuemap_trunk.patch
>
>
> ValueMap.getAsBoolean(key, defaultValue) should check if the provided key actually exists, and if not return the defaultValue. Currently it will delegate to Strings.isTrue(null) which always returns false.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.