You can use an input with a mask something like <input type="text" class="masked" data-format="999 999 999.99" > Have a look at https://igorescobar.github.io/jQuery-Mask-Plugin/ <https://igorescobar.github.io/jQuery-Mask-Plugin/>
François > Le 24 oct. 2017 à 14:37, Maxim Solodovnik <[email protected]> a écrit : > > I believe you can override "getTextFormat > <https://ci.apache.org/projects/wicket/apidocs/8.x/org/apache/wicket/markup/html/form/AbstractTextComponent.ITextFormatProvider.html#getTextFormat-->()" > method and provide your own format > According to right align: you can use CSS class for that :) > > On Tue, Oct 24, 2017 at 6:52 PM, Kamil Paśko <[email protected] > <mailto:[email protected]>> wrote: > Dear Wicket user group, > > > I have a TextField (but I can use NumberTextField as well) and when user > types a number I want that: > > 1) number is positioned to the right > > 2) thousands are separated by spaces > > 3) floating point character is "." > > > > How can I "force" that format in a TextField? > > Kind regards, > > Kamil > > > > -- > WBR > Maxim aka solomax
