Issue Details (XML | Word | Printable)

Key: STR-3104
Type: New Feature New Feature
Status: Open Open
Priority: Minor Minor
Assignee: Unassigned
Reporter: Ralf Hauser
Votes: 1
Watchers: 1
Operations

If you were logged in you would be able to see more operations.
Struts 1

when errors are present, move the form focus to an error field

Created: 08/Oct/07 07:55 PM   Updated: 05/Nov/07 08:30 AM
Return to search
Component/s: Tag Libraries
Affects Version/s: 1.3.8
Fix Version/s: Pending Review

Environment: any


 Description  « Hide
if there is an error, it does not make sense to put a form's focus on an input field that is perfectly valid if others are in "error".

Therefore, the form-tag's focus attribute should be made dependent on the other fields of the form being error-free.

Related is probably STR-1305

 All   Comments   Change History   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order
Paul Benedict added a comment - 12/Oct/07 03:13 AM
I believe the erring fields receives focus only with javascript validation. Can you confirm?

Ralf Hauser added a comment - 12/Oct/07 07:17 AM
I don't use javascript validation, I only use the javascript that is generated by the focus attribute of http://struts.apache.org/1.3.9/struts-taglib/tagreference.html#form.

This is kind of hard-coded. The intent of this RFE is to make this aware of the err* attributes the html tags inside the form may have and if another than the hard-coded, i.e. default suggested focus field is in error move the focus to there and deviate from the hard-coded suggestion..