Java Mailing List Archive

http://www.junlu.com/

Home » Home (12/2007) » JBoss User Help »

[jboss-user] [JBoss Seam] - selectItems internationalised label

scott.stark@jboss.org

2007-06-08


In the context of i18n, I would like to use a message key to obtain selectItems label.

In the following code I'd like to get the corresponding message to priority.labelKey key from locale bundle:


| <h:selectOneMenu
|   value="#{task.priority}">
|   <s:selectItems value="#{priorities}" var="priority" label="#{priority.labelKey}" noSelectionLabel="Please select" />
|   <s:convertEnum />
| </h:selectOneMenu>
|

I cannot find out a working pattern for this.
For instance I naively tried label="#{message[priority.labelKey]}" ...

TIA for any pointers to a solution


View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4052563#4052563

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4052563
_______________________________________________
jboss-user mailing list
jboss-user@(protected)
https://lists.jboss.org/mailman/listinfo/jboss-user
©2008 junlu.com - Jax Systems, LLC, U.S.A.