You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by "Igor Vaynberg (JIRA)" <ji...@apache.org> on 2010/03/18 16:28:27 UTC

[jira] Resolved: (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 ]

Igor Vaynberg resolved WICKET-2787.
-----------------------------------

    Resolution: Fixed
      Assignee: Igor Vaynberg

> 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
>            Assignee: Igor Vaynberg
>            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.