You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@myfaces.apache.org by mitroiasi <mi...@yahoo.com> on 2009/04/28 12:46:15 UTC

Question about convertNumber


Hi,

In my jsf code I have this statement:
<f:convertNumber pattern="###,###,###,##0" minIntegerDigits="1"
maxIntegerDigits="12" maxFractionDigits="0" />

But I want to change this behavior accordingly with a radio button. This
radio buttons are meter and km. When the user selects meter radio button
then he can insert a number without a comma. But when he selects the km
radio button, he can insert a number with 3 decimals, which later will be
converted in meters.

Which is the correct approach to this problem.
Any suggestion will be appreciated.
Thank you
-- 
View this message in context: http://www.nabble.com/Question-about-convertNumber-tp23274542p23274542.html
Sent from the MyFaces - Users mailing list archive at Nabble.com.