you can use a converter for serverside stuff. see
formcomponent.setconverter() and iconverter. for clientside you can
either create a behavior or subclass textfield, override
oncomponenttag and do tag.put("onblur", myjavascript);

-igor


On Thu, Feb 28, 2008 at 7:26 AM, rmattler <[EMAIL PROTECTED]> wrote:
>
>  If a phone number is input as (330) 555-1212 on the form when the form is
>  saved I want the data stored as 3305551212 in the database and when
>  displayed again on the form as (330) 555-1212.
>
>  As a bonus how do I would like data entered as 3305551212 and converted to
>  (330) 555-1212 on the onBlur event.
>
>  What is the "Wicket Way" to do this.
>  --
>  View this message in context: 
> http://www.nabble.com/New-quy-question-on-converting-input-data-tp15738847p15738847.html
>  Sent from the Wicket - User mailing list archive at Nabble.com.
>
>
>  ---------------------------------------------------------------------
>  To unsubscribe, e-mail: [EMAIL PROTECTED]
>  For additional commands, e-mail: [EMAIL PROTECTED]
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to