This content has been marked as final. Show 5 replies
We also need to color this column for certain cases
Use "switcher case" for the above requirement .
This textInputBean has to display in currency number format all the time. Then you mean use switcher to color the textInputBean for different cases? But there is no 'backgroud color' property for the textInputBean, if go by "CSS Class" property, that's actually going to be the same as setAttributeValue(oracle.cabo.ui.UIConstants.STYLE_CLASS_ATTR ...
By the way, is there any other way to display a number item by CURRENCY format other than call setAttributeValue(CURRENCY_CODE,"USD") in controller?
In the Controller while loading the page use
String s4 = Double.toString(d);
to convert it in to desired format, just for displaying, while form submitting again convert the string value back to number and post it to the DB.
Hope it helps!
No, it didn't help at all! We need the data on those beans to be number all the time, can not covert to string back and forth.
any help ??