I use a TextFieldFloat as shown below. Since this field represents a
currency unit (in this case, pound sterling) I want to have two decimal
places shown always. For example:
0.00
5.00
6.10
3.28.
What I find when I run my web application is that, after form submission,
the model's Float
you can keep the field as float and give it its own converter that
always shows two decimal places
-igor
On Mon, Dec 6, 2010 at 4:38 PM, Ian Marshall ianmarshall...@gmail.com wrote:
I use a TextFieldFloat as shown below. Since this field represents a
currency unit (in this case, pound
Hi Ian, you can provide an BigDecimalConverter that works with an
NumberFormat with its minimumFractionDigits setted to 2
On Mon, Dec 6, 2010 at 12:38 PM, Ian Marshall ianmarshall...@gmail.comwrote:
I use a TextFieldFloat as shown below. Since this field represents a
currency unit (in this
Thanks Igor and Pedro. I'll do that.
--
View this message in context:
http://apache-wicket.1842946.n4.nabble.com/Displaying-decimal-places-using-a-TextField-Float-tp3074547p3074627.html
Sent from the Users forum mailing list archive at Nabble.com.