struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alberto A. Flores" <aaflo...@gmail.com>
Subject Re: validation and CSS
Date Thu, 20 Dec 2007 03:00:11 GMT
I believe the errors are within a "span" with class "errorField" (it may 
be something else). Custom CSS can make you look like whatever you want.


lei.java@gmail.com wrote:
> Thanks Dave. It seems the simple theme is used so the message is in black.
> 
> I overrode the ..errorMessage style in JSP which solved my problem but I'm
> not sure if it's a right way to do that.
> 
> Thanks again.
> 
> 
> On Dec 19, 2007 8:09 PM, Dave Newton <newton.dave@yahoo.com> wrote:
> 
>> Er, the default stylesheet *does* make it show up in read. Are you using
>> the
>> <s:head/> tag? IIRC that is what includes the CSS file.
>>
>> d.
>>
>> --- "lei.java@gmail.com" <lei.java@gmail.com> wrote:
>>
>>> Is there a way to apply style sheet (CSS) to the message validator
>>> generates? For example, how to make the "Color me red" message in red
>> when
>>> it is shown up?
>>>
>>>
>>> <validators>
>>>
>>> <field name="pin">
>>>
>>> <field-validator type="requiredstring">
>>>
>>> <message>*Color me red*</message>
>>>
>>> </field-validator>
>>>
>>> </field>
>>>
>>> </validators>
>>>
>>> Many thanks.
>>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
>> For additional commands, e-mail: user-help@struts.apache.org
>>
>>
> 

-- 

Alberto A. Flores
http://www.linkedin.com/in/aflores



Mime
View raw message