[ 
https://issues.apache.org/struts/browse/STR-3104?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_42384
 ] 

Ralf Hauser commented on STR-3104:
----------------------------------

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

> when errors are present, move the form focus to an error field
> --------------------------------------------------------------
>
>                 Key: STR-3104
>                 URL: https://issues.apache.org/struts/browse/STR-3104
>             Project: Struts 1
>          Issue Type: New Feature
>          Components: Taglibs
>    Affects Versions: 1.3.8
>         Environment: any
>            Reporter: Ralf Hauser
>            Priority: Minor
>
> 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

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to