[jira] [Commented] (WICKET-1085) Input Text Mask

2011-07-01 Thread Martin Grigorov (JIRA)

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

Martin Grigorov commented on WICKET-1085:
-

There is such component in WicketStuff - 
https://github.com/wicketstuff/core/tree/master/jdk-1.5-parent/mootools-meiomask-parent.
 it is available in Maven repos.

 Input Text Mask
 ---

 Key: WICKET-1085
 URL: https://issues.apache.org/jira/browse/WICKET-1085
 Project: Wicket
  Issue Type: New Feature
  Components: wicket-extensions
Affects Versions: 1.3.0-rc1
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)- 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.
For more information on JIRA, see: http://www.atlassian.com/software/jira




[jira] Commented: (WICKET-1085) Input Text Mask

2008-01-22 Thread Gerolf Seitz (JIRA)

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

Gerolf Seitz commented on WICKET-1085:
--

i just stumbled over iMask: http://zendold.lojcomm.com.br/imask/
this could be a (very appealing) alternative to the attached implementation (no 
offense Will).

although it requires mootools, maybe there's not much to do to remove this 
dependency.

iMask is released under the terms of the MIT License.

 Input Text Mask
 ---

 Key: WICKET-1085
 URL: https://issues.apache.org/jira/browse/WICKET-1085
 Project: Wicket
  Issue Type: New Feature
  Components: wicket-extensions
Affects Versions: 1.3.0-rc1
Reporter: Will Hoover
Assignee: Frank Bille Jensen
Priority: Trivial
 Fix For: 1.4-M2

 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)- 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.



[jira] Commented: (WICKET-1085) Input Text Mask

2008-01-22 Thread Will Hoover (JIRA)

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

Will Hoover commented on WICKET-1085:
-

no offense taken :o) Looks like a nice tool- Although, it is a little bloated. 
Is it possible to shrink it (as you proposed)? Also, the expected behavior of 
the backspace/delete keys are not what most user's would expect- I suppose that 
is customizable?

Most of the bells and whistle features are pretty easy to add to the attached 
mask if desired (background color, cursor, etc.)

 Input Text Mask
 ---

 Key: WICKET-1085
 URL: https://issues.apache.org/jira/browse/WICKET-1085
 Project: Wicket
  Issue Type: New Feature
  Components: wicket-extensions
Affects Versions: 1.3.0-rc1
Reporter: Will Hoover
Assignee: Frank Bille Jensen
Priority: Trivial
 Fix For: 1.4-M2

 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)- 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.



[jira] Commented: (WICKET-1085) Input Text Mask

2007-10-24 Thread Sean Sullivan (JIRA)

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

Sean Sullivan commented on WICKET-1085:
---

Cool idea. I'd like to see this feature in Wicket


 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)- 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.



[jira] Commented: (WICKET-1085) Input Text Mask

2007-10-22 Thread Frank Bille Jensen (JIRA)

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

Frank Bille Jensen commented on WICKET-1085:


I weren't able to get around to it as well. Depending on what we figure out 
with the 1.3 release perhaps we postpone this until 1.4. Lets see.

 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)- 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.



[jira] Commented: (WICKET-1085) Input Text Mask

2007-10-19 Thread Will Hoover (JIRA)

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

Will Hoover commented on WICKET-1085:
-

Seeing that the only issue that exists is in relation to prefilled invalid 
values...

IMHO, I think that it can/should be done generically on the TextField 
component. All that would be needed is to verify that a valid regexp validator 
exists that supports the mask (remove reserved characters: 9, L, l, A, 
and any characters that exist between the reserved regexp character X). 
Basically, this is how a type definition is declared on the TextField to begin 
with (minus the mask check)- is it not?

Otherwise, a MaskTextField is fine, but I think it's just as easy to do it 
generically :o)

 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)- 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.



[jira] Commented: (WICKET-1085) Input Text Mask

2007-10-19 Thread Gerolf Seitz (JIRA)

[ 
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)- 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.



[jira] Commented: (WICKET-1085) Input Text Mask

2007-10-19 Thread Will Hoover (JIRA)

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

Will Hoover commented on WICKET-1085:
-

1) As Billie stated- that was the intention to have (999)999 evaluate as a 
string. Most masks should be evaluated a string seeing that most of the time a 
mask would contain special characters that define the mask (i.e. (, ), and 
- in the example). For special cases where a string needs to be converted 
(such as the case with a date) it would be just as easy to use a converter that 
converts a date based upon a regexp check on the server. If I am missing 
something let me know :o)

2) To clarify, this is only an issue when a invalid prefilled value is 
provided. In which case, IMHO, is an issue with the data provided. If the user 
does not have a valid value to begin with then it's an issue with their data. 
However, the script does handle valid prefilled values. The script assumes 
that the initial value (if any) originated from a valid source (i.e. DB or 
other source).

If this is really an issue that needs to be addressed...

A) I could add a page load listener that would validate the value and handle 
conversion accordingly, but what would we do if an invalid value is found? 
notify the user and leave it as is (really doesn't resolve the issue)? clear 
the value (may confusing to developers to see their data missing)? 

B) We could do the validation on the server side before rendering the page- 
seeing that we already have the mask pattern at that point. Not to mention, we 
need to do the conversion (and possibly validation) going back to the server 
anyways, but this will duplicate our efforts in that the code used to 
evaluate/convert the value would exist on the server as well as the client.

 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)- 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.



[jira] Commented: (WICKET-1085) Input Text Mask

2007-10-19 Thread Frank Bille Jensen (JIRA)

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

Frank Bille Jensen commented on WICKET-1085:


1) I would say the component needs a converter to handle those values. Who says 
that (999) or -99-99 is an integer? IMO those could be both string, 
number and date.

2) I haven't tried it yet, but if it's the javascript that doesn't handle it, 
then it should be fixed.

 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)- 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.



[jira] Commented: (WICKET-1085) Input Text Mask

2007-10-19 Thread Frank Bille Jensen (JIRA)

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

Frank Bille Jensen commented on WICKET-1085:


It looks nice. I will convert it into a component and if no-one objects I will 
add it to extensions. 

 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)- 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.