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
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()
]
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
3 matches
Mail list logo