[jboss-user] [JBoss Seam] - Re: howto display the an enum object internationalized

petemuir do-not-reply at jboss.com
Tue Jun 12 06:53:56 EDT 2007


Smurfs isn't putting the label in the model, rather the key to the model.  Using jboss-el you could do

<f:selectOneMenu value="#{backingBean.salutation}">
  |    <s:selectItems value="#{salutations}" var="salutation" label="#{messages[salutation.name()]}"/>
  |    <s:convertEnum />
  | </f:selectOneMenu>

with the factory as Smurfs said.  You then get have to provide keys for VALUE1, VALUE2 etc.

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

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4053452



More information about the jboss-user mailing list