Details
-
Type: Bug
-
Status: Closed
-
Priority: Major
-
Resolution: Fixed
-
Affects Version/s: 4.0
-
Fix Version/s: EE-4.2.0.GA
-
Component/s: ACE-Components
-
Labels:None
-
Environment:Tomcat 8, all browsers. These issues have existed since 4.0
-
Assignee Priority:P2
Description
These issues have been present since 4.0
1.) The mask becomes the value when ajax is used in the maskedEntry and the field is submit without entering input. See screenshot 1.PNG. Can also be seen in public showcase maskedEntry demos.
To reproduce:
- Use the maskedEntry Overview demo at: http://icefaces-showcase.icesoft.org/showcase.jsf?grp=ace:maskedEntry
- Place focus in each form field and press Enter, the masks become the values in the Entered data section.
2.) Scenario: ajax is not used and there is an inField label in the maskedEntry. If the form is submit via an h:commandButton or ace:pushButton without ever placing focus on the maskedEntry to render the mask, the label becomes the submitted value. See screenshots 2 and 3.
Screenshot 2 shows form before submit, inField label displayed properly
Screenshot 3 shows form that was submit without placing focus on maskedEntry. Note the inField label has been replaced by the value of "Label"
To reproduce:
- Use the test app /ICE-11305.jsf found at http://dev.icesoft.com/svn/repo/qa/trunk/Regression-Icefaces4/Sparkle/Nightly/maskedEntry
- Use the "MaskedEntry no ajax" form at the top of the page.
- Change the labelPosition to inField.
- DO NOT place focus in the maskedEntry
- Press the Submit button, the label text becomes the value.
1.) The mask becomes the value when ajax is used in the maskedEntry and the field is submit without entering input. See screenshot 1.PNG. Can also be seen in public showcase maskedEntry demos.
To reproduce:
- Use the maskedEntry Overview demo at: http://icefaces-showcase.icesoft.org/showcase.jsf?grp=ace:maskedEntry
- Place focus in each form field and press Enter, the masks become the values in the Entered data section.
2.) Scenario: ajax is not used and there is an inField label in the maskedEntry. If the form is submit via an h:commandButton or ace:pushButton without ever placing focus on the maskedEntry to render the mask, the label becomes the submitted value. See screenshots 2 and 3.
Screenshot 2 shows form before submit, inField label displayed properly
Screenshot 3 shows form that was submit without placing focus on maskedEntry. Note the inField label has been replaced by the value of "Label"
To reproduce:
- Use the test app /
- Use the "MaskedEntry no ajax" form at the top of the page.
- Change the labelPosition to inField.
- DO NOT place focus in the maskedEntry
- Press the Submit button, the label text becomes the value.
1) Added keypress event handler that verifies input's value before a submit triggered by 'Enter' key.
2) I cannot reproduce the described issue.