so you want the user to enter 1,000,000 but on serverside that to be
1000000? then you need a maskconverter that will convert the string to
integer.

-igor


On 2/28/07, Manuel Alejandro de Brito Fontes <[EMAIL PROTECTED]>
wrote:

Yes, I'ts simple, the problem is when I modify the content of the
textfield the value of the object is with the mask, not the value
behind.
For instance, I have a textfield that only accept integer numbers
(thats is easy with new PatternValidator( "\\d+" ) ), now I want that
the user enter the number  1000000 and in the event onblur  occur
apply a mask to the number, i.e 1,000,000 or when I write the number
going applying the mask inline. All that works perfect with
javascript, but the problem is what happens behind that. The number
is not 1000000 it's 1,000,000, so if exist a validation between two
fields i'm screw, I have to know if the field contains a mask or not.
In addition if I do formcomponent.validate() and formcomponent.isValid
() returns false.
The "explication" is confused or I'm confused?

On 28-02-2007, at 16:04, Igor Vaynberg wrote:

> zapatec do it with javascript, which is really the only way to go
> about it.
> once you figure out the javascript it is trivial to hook it into
> wicket.
>
> -igor
>
>
> On 2/28/07, Manuel Alejandro de Brito Fontes
> <[EMAIL PROTECTED]>
> wrote:
>>
>> Hi, I have a question about field mask, It's possible do something
>> like
>> this: http://www.zapatec.com/website/ajax/zpform/demo/mask.html or
>> similar
>> to
>> http://java.sun.com/docs/books/tutorial/uiswing/components/
>> formattedtextfield.htmlin wicket?
>> I miss something in the documentation?.  I only found the
>> IConverter interface
>> doing override of the method getConverter(Class<?> type) in a
>> TextField
>> declaration. The problem is that getConverter() modify my model
>> and I don't
>> want that.
>>
>>
>> ---------------------------------------------------------------------
>> ----
>> Take Surveys. Earn Cash. Influence the Future of IT
>> Join SourceForge.net's Techsay panel and you'll get the chance to
>> share
>> your
>> opinions on IT & business topics through brief surveys-and earn cash
>> http://www.techsay.com/default.php?
>> page=join.php&p=sourceforge&CID=DEVDEV
>> _______________________________________________
>> Wicket-user mailing list
>> [email protected]
>> https://lists.sourceforge.net/lists/listinfo/wicket-user
>>
>>
> ----------------------------------------------------------------------
> ---
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to
> share your
> opinions on IT & business topics through brief surveys-and earn cash
> http://www.techsay.com/default.php?
> page=join.php&p=sourceforge&CID=DEVDEV________________________________
> _______________
> Wicket-user mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/wicket-user


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share
your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Wicket-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-user

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Wicket-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-user

Reply via email to