[ 
https://issues.apache.org/struts/browse/WW-2610?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=44715#action_44715
 ] 

Gabriel Belingueres commented on WW-2610:
-----------------------------------------

sorry wrong button :P

<style type="text/css">
<!--
.myok { background-color: green }
.myerror { background-color: yellow }
-->
</style> 
...
<s:form ... theme="simple">
    <s:textfield name="t" cssStyle="background-color: green" 
cssErrorClass="myerror"/>
    <s:select name="xxx" cssStyle="background-color: green" 
cssErrorClass="myerror" list="somelist" size="1" />
...

when validation error occurs, the generated markup is:

<input type="text" name="t" ... class="myerror" style="background-color: 
green"/>

here the background is green because the style attribute is present.

I think I can send a fix in a few days.

> checkfielderror.ftl does  not  highlight  select tag errors in yellow
> ---------------------------------------------------------------------
>
>                 Key: WW-2610
>                 URL: https://issues.apache.org/struts/browse/WW-2610
>             Project: Struts 2
>          Issue Type: Bug
>    Affects Versions: 2.0.9
>         Environment: Windows XP , Eclipse 
>            Reporter: Peter Wages
>            Priority: Minor
>             Fix For: 2.1.3
>
>
> Whereas checkfielderror.ftl   of the simple theme   will find field errors  
> for   a textfield and  change  the background to yellow.  It will not do so 
> for  select tags.   The error message  for the select tags show up so the 
> theme  knows about the errors.  It would seem that  the fielderrors 
> array/list   is removed or dis appears.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to