struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dasgupta, Ranjan" <Ranjan.Dasgu...@ps.net>
Subject RE: [S2] error style on s:textfield
Date Wed, 30 Jul 2008 19:56:14 GMT
In your action set the fieldError:
addFieldError("someField", "someText")

in your JSP:
<s:textfield name="someField" cssErrorClass="someClass"/> 

Thanks,
-RD

-----Original Message-----
From: Pierre Thibaudeau [mailto:pierre.thibaudeau@gmail.com] 
Sent: Wednesday, July 30, 2008 3:31 PM
To: Struts Users Mailing List
Subject: [S2] error style on s:textfield

In Struts2, what is the equivalent of Struts1's "errorStyleClass"
parameter of <html:text> tag?

In other words, how can I control the CSS style of a <s:textfield> when
there is an error over that field?

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


Mime
View raw message