[
https://issues.apache.org/jira/browse/TOMAHAWK-932?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Paul Spencer resolved TOMAHAWK-932.
-----------------------------------
Resolution: Fixed
Fix Version/s: 1.1.5-SNAPSHOT
> SelectBox example always fails the door validation
> --------------------------------------------------
>
> Key: TOMAHAWK-932
> URL: https://issues.apache.org/jira/browse/TOMAHAWK-932
> Project: MyFaces Tomahawk
> Issue Type: Bug
> Affects Versions: 1.1.5-SNAPSHOT
> Reporter: Paul Spencer
> Assigned To: Paul Spencer
> Fix For: 1.1.5-SNAPSHOT
>
>
> The SelectBox example always fails the door validation.
> ***
> * From Mike Kienenberger
> ***
> <h:selectOneMenu id="doors" value="#{carconf.doors}">
> <f:selectItem itemValue="2" itemLabel="2" />
> <f:selectItem itemValue="4" itemLabel="4" />
> <f:selectItem itemValue="7" itemLabel="7" />
> </h:selectOneMenu>
> public void setDoors(int doors)
> {
> this._doors = doors;
> }
> itemValue is a String. Doors expects an int. This probably has
> been the most reported issue in the last month. For RI compatiblity
> (and adherence to the spec), we can no longer coerce itemValue types
> to the backing bean types.
> The easiest fix would be to change the door type to "Long" and then
> use "#{2}" as the itemValue.
> Another possiblity is to enhance t:selectItem to perform the
> coercision as it's not limited by the spec and JSF RI requirements.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.