You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by "marcus biel (innoWake gmbh)" <ma...@innowake.de> on 2006/06/07 11:50:44 UTC
focus on first error
Hi,
I've got a form, that focuses on the first
textbox when the page is loaded.
When an error occurs, I want to focus on the
textbox with the first error.
How can that be achieved???
Thanks,
Marcus
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
Re: focus on first error
Posted by Truong Xuan Tinh <ti...@pyramid-consulting.com>.
Hi, you can use validation framework of Struts, it's a plugin of Struts,
remember to set the property stopOnFirstError to true, this make the
first error field focused.
marcus biel (innoWake gmbh) wrote:
> Hi,
>
> I've got a form, that focuses on the first
> textbox when the page is loaded.
> When an error occurs, I want to focus on the
> textbox with the first error.
>
> How can that be achieved???
>
> Thanks,
>
> Marcus
>
>
> ---------------------------------------------------------------------
> 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