RE: FW: focus on first error

2006-09-12 Thread Strachan, Paul
] Sent: Tue 12/09/2006 5:43 PM To: Struts Users Mailing List Subject: Re: FW: focus on first error Hello, I was need to manage focus on the first field with error. With your solution, the problem is errors collection is sorted, so your focus will not go to the first field with error in your JSP. So

Re: FW: focus on first error

2006-09-12 Thread Angelo zerr
Hello, I was need to manage focus on the first field with error. With your solution, the problem is errors collection is sorted, so your focus will not go to the first field with error in your JSP. So I extends doErrorExist of TextTag to manage it, like this : protected boolean doErrorsExist() th

FW: focus on first error

2006-09-11 Thread Strachan, Paul
maybe we could do something like this in the JSP - the idea is taken from the TextTag.java which knows to use the errorStyleClass when theres an error. ... <%@ page import="java.util.Iterator" %> <%@ page import="org.apache.struts.Globals" %> <%@ page import="org.apache.struts.taglib.TagUtils" %

Re: AW: focus on first error

2006-06-07 Thread Angelo zerr
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 <[EMAIL PROTECTED]>: Hi, AFAIK, Struts validation doesn't sup

Re: AW: focus on first error

2006-06-07 Thread Truong Xuan Tinh
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

AW: focus on first error

2006-06-07 Thread marcus biel \(innoWake gmbh\)
>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 error

Re: focus on first error

2006-06-07 Thread Truong Xuan Tinh
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

focus on first error

2006-06-07 Thread marcus biel \(innoWake gmbh\)
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: [