You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Raghuveer <ra...@infotechsw.com> on 2006/05/05 15:27:12 UTC

Marking fields with background colour having errors

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: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Re: Marking fields with background colour having errors

Posted by Niall Pemberton <ni...@gmail.com>.
On 5/5/06, Raghuveer <ra...@infotechsw.com> wrote:
> 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.

Yes these attributes are exactly for that purpose:

http://www.niallp.pwp.blueyonder.co.uk/strutshighlight.html

Niall

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Re: Marking fields with background colour having errors

Posted by Angelo zerr <an...@gmail.com>.
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 <ra...@infotechsw.com>:
>
> 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: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>