You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@struts.apache.org by "J Livermore (Created) (JIRA)" <ji...@apache.org> on 2011/11/25 19:33:40 UTC
[jira] [Created] (WW-3712) cssErrorClass not being set in Struts2
input tag when ActionSuport.addFieldError() is called in ActionClass.
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
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
[jira] [Updated] (WW-3712) cssErrorClass not being set in Struts2
input tag when ActionSuport.addFieldError() is called in ActionClass.
Posted by "Lukasz Lenart (Updated) (JIRA)" <ji...@apache.org>.
[ 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
[jira] [Commented] (WW-3712) cssErrorClass not being set in Struts2
input tag when ActionSuport.addFieldError() is called in ActionClass.
Posted by "J Livermore (Commented) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/WW-3712?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13163725#comment-13163725 ]
J Livermore commented on WW-3712:
---------------------------------
You may want to check all the other Struts 2 form input tags.
> 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
> Assignee: Wes Wannemacher
> 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
[jira] [Resolved] (WW-3712) cssErrorClass not being set in Struts2
input tag when ActionSuport.addFieldError() is called in ActionClass.
Posted by "Wes Wannemacher (Resolved) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/WW-3712?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Wes Wannemacher resolved WW-3712.
---------------------------------
Resolution: Fixed
updated radiomap.ftl template to use css.ftl the same as other UI tags
> 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
> Assignee: Wes Wannemacher
> 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
[jira] [Commented] (WW-3712) cssErrorClass not being set in Struts2
input tag when ActionSuport.addFieldError() is called in ActionClass.
Posted by "Hudson (Commented) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/WW-3712?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13163717#comment-13163717 ]
Hudson commented on WW-3712:
----------------------------
Integrated in Struts2 #382 (See [https://builds.apache.org/job/Struts2/382/])
WW-3712
- added css.ftl to the radiomap.ftl template
- added s:radio to showcase to make it easier to test s:radio
wesw :
Files :
* /struts/struts2/trunk/apps/showcase/src/main/java/org/apache/struts2/showcase/UITagExample.java
* /struts/struts2/trunk/apps/showcase/src/main/webapp/tags/ui/example.jsp
* /struts/struts2/trunk/apps/showcase/src/main/webapp/tags/ui/exampleSubmited.jsp
* /struts/struts2/trunk/core/src/main/resources/template/simple/radiomap.ftl
> 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
> Assignee: Wes Wannemacher
> 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
[jira] [Assigned] (WW-3712) cssErrorClass not being set in Struts2
input tag when ActionSuport.addFieldError() is called in ActionClass.
Posted by "Wes Wannemacher (Assigned) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/WW-3712?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Wes Wannemacher reassigned WW-3712:
-----------------------------------
Assignee: Wes Wannemacher
> 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
> Assignee: Wes Wannemacher
> 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