Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
The moose likes Other Open Source Projects and the fly likes how to display negative values within parenthesis using <display:column > ? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA Java SE 8 Programmer I Study Guide 1Z0-808 this week in the OCAJP forum!
JavaRanch » Java Forums » Products » Other Open Source Projects
Bookmark "how to display negative values within parenthesis using <display:column > ?" Watch "how to display negative values within parenthesis using <display:column > ?" New topic
Author

how to display negative values within parenthesis using <display:column > ?

antsi klando
Ranch Hand

Joined: May 10, 2011
Posts: 46
I want to get the negative values displayed within parenthesis using <display:column format="$ {0,number,###,###,###,###.00}">.
If for example,the values are positive,the value should be $ 12.32,else $ (12.32).
 
jQuery in Action, 2nd edition
 
subject: how to display negative values within parenthesis using <display:column > ?