[jboss-user] [JBoss Seam] - Re: does seam ignore generics in lists?

swd847 do-not-reply at jboss.com
Thu Sep 6 01:37:15 EDT 2007


You need to use a converter. If you are using entities you can use <s:convertEntity/> like so:


  |         <h:selectOneMenu value="#{bscPr.selected}">
  |             <s:selectItems value="#{bscPr.times}" var="n" 
  |                 label="#{n.toShortString()}" 
  |                 noSelectionLabel="Please select..."/>
  |                <s:convertEntity/>
  |         </h:selectOneMenu>
  | 

otherwise you have to write your own, I think seam comes with an example of how to do this.

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

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



More information about the jboss-user mailing list