[ 
https://issues.apache.org/jira/browse/WICKET-1085?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12536193
 ] 

Gerolf Seitz commented on WICKET-1085:
--------------------------------------

1) i used an integer model-object in my example, but as you said, the component 
would need a converter.
2) yes, it is the javascript

i tried to implement it as a behavior that expects the bound component to 
implement ITextFormatProvider to get the input mask,
but i haven't found a way to "inject" a converter into the component form 
inside the behavior. maybe it was just too late ;)

> Input Text Mask
> ---------------
>
>                 Key: WICKET-1085
>                 URL: https://issues.apache.org/jira/browse/WICKET-1085
>             Project: Wicket
>          Issue Type: New Feature
>          Components: wicket-extensions
>            Reporter: Will Hoover
>            Assignee: Frank Bille Jensen
>            Priority: Trivial
>         Attachments: inputTextMask.js
>
>
> Allow developers to designate a keystroke input pattern for the input text 
> component. The pattern  would be used on the client to control valid 
> keystrokes for the current cursor position within the input text field in 
> relation to the specified pattern.
> For example, a pattern could be designated as "(999)-9999" causing only 
> number values in each position where a "9" appears and using the "(", ")", 
> and "-" as masking characters. When the cursor position reached one of these 
> mask characters the cursor position would advance to the next "9" position. 
> The resulting mask would appear as "(___)___-____" within the input text 
> value.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to