myfaces-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Martin Koci (JIRA)" <...@myfaces.apache.org>
Subject [jira] Created: (MYFACES-2546) Conversion rules for obtaing renderable String from the "value" property of SelectItem
Date Wed, 10 Feb 2010 21:15:27 GMT
Conversion rules for obtaing renderable String from the "value" property of SelectItem
--------------------------------------------------------------------------------------

                 Key: MYFACES-2546
                 URL: https://issues.apache.org/jira/browse/MYFACES-2546
             Project: MyFaces Core
          Issue Type: Improvement
          Components: JSR-314
    Affects Versions: 2.0.0-beta-2
         Environment: myfaces trunk
            Reporter: Martin Koci
            Priority: Minor


<h:selectOneMenu>
        <f:selectItems value="#{model.selectItemsWithNonStringValue}" />
</h:selectOneMenu>

if SelectItem.getValue() returns other type than String and there is no converter for that
type, myfaces throw exception: java.lang.IllegalArgumentException: Value is no String
at org.apache.myfaces.shared_impl.renderkit.RendererUtils.getConvertedStringValue(RendererUtils.java:633)
	at org.apache.myfaces.shared_impl.renderkit.RendererUtils.getConvertedStringValue(RendererUtils.java:652)
	at org.apache.myfaces.shared_impl.renderkit.html.HtmlRendererUtils.renderSelectOptions(HtmlRendererUtils.java:538)


RI does not throw a exception but with quietness outputs toString() as <option> value.

-- 
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