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

IGx89 do-not-reply at jboss.com
Wed Oct 24 13:02:50 EDT 2007


Create a stateless Seam component with a method that takes a float as a parameter and returns it as a formatted currency string.

For example, if you named the component "formatter" and named the method "asCurrency(float currency)", then your label attribute would be:
label="#{sale.name} - #{formatter.asCurrency(sale.getSubtotal(calendarBean))}"

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

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



More information about the jboss-user mailing list