I have also been working on a similar project which marks fields in
error with a background color. In addition to that, it also:

1. If you click on the error messages on the top, it scrolls you to the
field in error.
2. Marks the field with a color.
3. Generates a pop-up div box with a detailed message about the error.

I have it working to the point where its mostly a matter of declaring a
taglib and calling it from your JSP like: 
<mytld:errors/> instead of <html: errors/>
And you have to define a properties file for the messages in the pop-up
boxes.

I haven't made it into a component yet which I plan to do pretty soon. I
am hesitant on doing that as in most companies, the list of "allowed"
jars is limited and so I think it will be useful just to release the
source code for it.



Let me know if you need it.

Harsh.

-----Original Message-----
From: Angelo zerr [mailto:[EMAIL PROTECTED] 
Sent: Friday, May 05, 2006 8:41 AM
To: Struts Users Mailing List; [EMAIL PROTECTED]
Subject: Re: Marking fields with background colour having errors


Hi,
you wil be perhaps interested by FormView project. With FormView, you
can
easily set a styleClass to input which have errors by using ActionError
Struts.

see http://formview.sourceforge.net/errors.html for more information.

Angelo

2006/5/5, Raghuveer <[EMAIL PROTECTED]>:
>
> Hi,
> Does struts has any facility to show fields having validation error in
> red color or mark it in some way?
>
> Not the error messages
>
> Could any one suggest using
>
> 'errorKey' 'errorStyle'
> 'errorStyleClass' and 'errorStyleId' attributes.
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to