struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Angelo zerr" <angelo.z...@gmail.com>
Subject Re: AW: focus on first error
Date Wed, 07 Jun 2006 13:09:45 GMT
If you want you can use FormView. It manage the first error returned by
validation.
See use case of formview for manage errors with your fields at
http://formview.sourceforge.net/errors.html

Regards Angelo

2006/6/7, Truong Xuan Tinh <tinh.truong@pyramid-consulting.com>:
>
> Hi, AFAIK, Struts validation doesn't support this kind of behavior.
> It will:
> 1. Display all the errors (grouped by category) and focus the last error
> field.
> 2. Display the first error, focused on the first error field and stop
> validation.
> PS: You can make the error field's selected, just modify the validation
> script inside the struts distribution. Right after it focused the field,
> called the function to select the text of the text field. (make sure
> your field is text or textarea)
> marcus biel (innoWake gmbh) wrote:
> >> 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.
> >>
> >
> >
> > No, this just displays the first error -
> > (on a side note, this did not even work for me...)
> >
> > but I want to display all errors,
> > but to focus on the first error,
> > so that the user can directly start correcting the error,
> > without having to click on the necessary field.
> >
> > Also, if possible, I would like to mark the entire value,
> > so that the user doesn't need to delete the value but can directly type
> > a new value. That's importanted, because the app will run on a
> > touchscreen...
> >
> >
> > 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
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message