[
https://issues.apache.org/jira/browse/WICKET-1085?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12536146
]
Gerolf Seitz commented on WICKET-1085:
--------------------------------------
i played with it yesterday, and i think there are certain limitations to it:
1) if you have a textfield with an integer model-object and you want to use a
mask like "(999)999",
the model will not get updated due to conversion failure.
2) the InputTextMask doesn't handle prefilled textfiields (component has a
non-null, length>0 modelobject)
this is what i found out with just a little playing around, though these issues
can be solved probably fairly easy (eg. override convertInput for 1))
> 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.