You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by j h <jh...@ic.ac.uk> on 2004/07/20 16:43:30 UTC

form focus

Can someone explain how the focus of a form can be set to one of the elements 
that failed validation when the form is re-displayed


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Re: form focus

Posted by Niall Pemberton <ni...@blueyonder.co.uk>.
Why not customize the <html:form> tag?

You could override the renderFocusJavascript() method in FormTag to retrieve
the errors and highlight the appropriate field

Niall

----- Original Message ----- 
From: "j h" <jh...@ic.ac.uk>
To: <us...@struts.apache.org>
Sent: Tuesday, July 20, 2004 3:43 PM
Subject: form focus


> Can someone explain how the focus of a form can be set to one of the
elements
> that failed validation when the form is re-displayed
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>
>



---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org