FW: focus on first error

2006-09-12 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 % %@ page

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()

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