7 Replies Latest reply on Oct 24, 2007 3:26 PM by Pete Muir

    Simple question, tough answer about SelectItems

    Daniel Hinojosa Master

      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....