[ 
https://issues.apache.org/jira/browse/WW-3712?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Lukasz Lenart updated WW-3712:
------------------------------

    Fix Version/s: 2.3.1
    
> cssErrorClass not being set in Struts2 input tag when 
> ActionSuport.addFieldError() is called in ActionClass.
> ------------------------------------------------------------------------------------------------------------
>
>                 Key: WW-3712
>                 URL: https://issues.apache.org/jira/browse/WW-3712
>             Project: Struts 2
>          Issue Type: Bug
>          Components: Core Actions
>    Affects Versions: 2.2.3
>            Reporter: J Livermore
>             Fix For: 2.3.1
>
>
> I have an input field defined as:
> <s:radio name="jointAccount" list="#{'yes':'yes','no':'no'}" required="true" 
> cssErrorClass="fv_error"/>
> And in my ActionClass I am calling:
> if(jointAccount == null || jointAccount.isEmpty()) {
>             this.addFieldError("jointAccount", "JOINT is required.");
>             return INPUT;
>         }
> And the rendered HTML is not showing the cssErrorClass:
> <input type="radio" name="jointAccount" id="olr_step2_jointAccountyes" 
> value="yes"/><label for="olr_step2_jointAccountyes">yes</label>
> <input type="radio" name="jointAccount" id="olr_step2_jointAccountno" 
> value="no"/><label for="olr_step2_jointAccountno">no</label>

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to