[ https://issues.apache.org/jira/browse/WICKET-1085?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12536193 ]
seitz edited comment on WICKET-1085 at 10/19/07 5:10 AM: ---------------------------------------------------------------- 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 ;) update: william, these problems are probably easier to solve if there is a dedicated component (eg. MaskedTextField). as i said above, i tried the more "lightweight" approach to use the mask also for currently existing TextField subclasses (eg. DateTextField in wicket-datetime). in this case, you don't always have the luxury to say that the modelobject should be a string, since you can't alter the components internals from outside. maybe i'm just overlooking something and overcomplicating it, so i can be totally wrong. was (Author: seitz): 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.