[
https://issues.apache.org/jira/browse/TOBAGO-877?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12860364#action_12860364
]
Udo Schnurpfeil commented on TOBAGO-877:
----------------------------------------
I've also added an example in
tobago-example-test/faces/tc/selectItem/type-of-literals.xhtml
As you can see there, some combinations are not working, but you can still use
the tc:selectItem tag, which is working with every JSF version and
implementation.
<f:selectItem itemValue="1" itemLabel="f:selectItem 1 (literal), works
not with JSF 1.1"/>
<f:selectItem itemValue="TTD" itemLabel="f:selectItem TTD (literal),
works not with JSF 1.1 and Sun-RI 1.2"/>
> Better support of typed literals in <tc:selectItem> and <f:selectItem>
> ----------------------------------------------------------------------
>
> Key: TOBAGO-877
> URL: https://issues.apache.org/jira/browse/TOBAGO-877
> Project: MyFaces Tobago
> Issue Type: Improvement
> Components: Core
> Reporter: Udo Schnurpfeil
> Assignee: Udo Schnurpfeil
> Priority: Minor
>
> It would be useful, when we can use e.g.
> <tc:selectItem itemValue="USD"/>
> (tc-lib) in a select control with a model type e.g. java.util.Currency
> (having a converter).
> It also should be possible to use
> <f:selectItem itemValue="5"/>
> (f-lib) with a int as model value.
> It seems that the second one is only possible with JSF 1.2, not with JSF 1.1.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.