[jboss-user] [JBoss Seam] - Simple question, tough answer about SelectItems

dhinojosa do-not-reply at jboss.com
Wed Oct 24 12:55:41 EDT 2007


Ok, I have a drop-down menu with a selection of products, here is a JSF snippet:


  |         <h:message for="productsMenu"/>
  |         <h:selectOneMenu id="productsMenu"
  |                          value="#{product}">
  |             <s:selectItems var="product"
  |                            value="#{saleFinder.products}"
  |                            label="#{sale.name} - #{sale.getSubtotal(calendarBean)}"
  |                            noSelectionLabel="Select Sale Product..."/>
  |             <s:convertEntity/>
  |         </h:selectOneMenu>
  | 

Now here is the tough part...I want to format the second part of the label, #{sale.getSubtotal(calendarBean)}", as a currency....





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

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



More information about the jboss-user mailing list