[JAVAEETUTORIAL-122] clarify UI restraint versus validation Created: 10/Jul/12  Updated: 16/Aug/12  Resolved: 27/Jul/12

Status: Closed
Project: javaeetutorial
Component/s: doc
Affects Version/s: 6.0.7-5
Fix Version/s: 6.0.7-5

Type: Improvement Priority: Major
Reporter: Brant Gurganus Assignee: Kim Haase
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


This issue occurs on the page titled "Using the Standard Validators" at http://docs.oracle.com/javaee/6/tutorial/doc/bnatc.html. Under the section titled "Using LongRangeValidator" you might clarify that size does not do any validation. Size only sets the size attribute on the rendered input field which, only in that rendered interface will restrict input to a certain length. There is nothing preventing an appropriate GET or POST request from specifying a field value that exceeds the set length. To actually validate the length, you'd need a validator.

Comment by Kim Haase [ 24/Jul/12 ]

Thanks for catching this misleading language.

Comment by Kim Haase [ 27/Jul/12 ]

Removed the irrelevant sentence about the size attribute of inputText.

Generated at Thu Oct 08 18:46:43 UTC 2015 using JIRA 6.2.3#6260-sha1:63ef1d6dac3f4f4d7db4c1effd405ba38ccdc558.