let me explain
your idea works on error message ,it creates border on error messages

i am trying something that it chages border of element(textbox,combobox) on
which error comes
so i am iterating fieldErrors List from valuestack and get its key as
elementname 
and using  #<s:property value="key"/>,
create dynamically css class corresponding to element id 
so it automatically detect and apply it

thanks






Jishnu Viswanath wrote:
> 
> That's the way you should not do it, I still don't understand what are you
> doing there, though
> 
> There is an attribute called cssClass and cssStyle
> 
> <s:fielderror cssClass="className"/>
> <style type="text/css">
>     . className {
>         border:1px solid #cccccc;
>     }
> </style>
> 
> <s:fielderror cssStyle="border:1px solid red;"/>
> 
> Try it, it should work, I never tried with fieldError cos I never used it.
> 
> Regards,
> 
> Jishnu Viswanath
> 
> Software Engineer
> 
> *(+9180)41190300 - 222(Ext) ll * ( + 91 ) 9731209330ll
> 
> Tavant Technologies Inc.,
> 
> www.tavant.com
> 
> PEOPLE :: PASSION :: EXCELLENCE
> 
> 
> -----Original Message-----
> From: Hardik Shah [mailto:[EMAIL PROTECTED] 
> Sent: Thursday, October 16, 2008 4:03 PM
> To: user@struts.apache.org
> Subject: Re: change border of field when error comes(Custom CSS)
> 
> 
> thanks 
> 
> i dont know how to create custom theme for that but 
> 
> i have done manually
> 
> <STYLE type="text/css">
> <s:iterator value="fieldErrors">
> #<s:property value="key"/>,
> </s:iterator>
> {     
> border-color: #FFE6F7;
>       
> }
> 
> </STYLE>
> 
> 
> Torsten Krah wrote:
>> 
>> Am Donnerstag, 16. Oktober 2008 09:14:19 schrieb Hardik Shah:
>>> can anybody gives idea
>> 
>> Make a custom theme for your tag you want to get a custom border and add
>> your 
>> css definition there.
>> Another solution would be, to use s:if and look in the fielderror List
>> for
>> a 
>> failure for your field and if one exists, use a custom css definition.
>> 
>> -- 
>> Bitte senden Sie mir keine Word- oder PowerPoint-Anhänge.
>> Siehe http://www.gnu.org/philosophy/no-word-attachments.de.html
>> 
>> Really, I'm not out to destroy Microsoft. That will just be a 
>> completely unintentional side effect."
>>      -- Linus Torvalds
>> 
>>  
>> 
> 
> -- 
> View this message in context:
> http://www.nabble.com/change-border-of-field-when-error-comes%28Custom-CSS%29-tp20008381p20010973.html
> Sent from the Struts - User mailing list archive at Nabble.com.
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> Any comments or statements made in this email are not necessarily those of
> Tavant Technologies.
> The information transmitted is intended only for the person or entity to
> which it is addressed and may 
> contain confidential and/or privileged material. If you have received this
> in error, please contact the 
> sender and delete the material from any computer. All e-mails sent from or
> to Tavant Technologies 
> may be subject to our monitoring procedures.
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/change-border-of-field-when-error-comes%28Custom-CSS%29-tp20008381p20027603.html
Sent from the Struts - User mailing list archive at Nabble.com.


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

Reply via email to