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

Hudson commented on WW-4630:
----------------------------

FAILURE: Integrated in Struts-JDK6-support-2.3 #1021 (See 
[https://builds.apache.org/job/Struts-JDK6-support-2.3/1021/])
WW-4630 - <s:submit> generates a value attribute for type=image which 
(amashchenko: rev 731fde544c00bcc3933a561848b81374939954aa)
* core/src/test/resources/org/apache/struts2/views/jsp/ui/Submit-2.txt
* core/src/test/resources/org/apache/struts2/views/jsp/ui/Submit-1.txt
* core/src/test/java/org/apache/struts2/views/jsp/ui/SubmitTest.java
* core/src/test/resources/org/apache/struts2/views/jsp/ui/Submit-5.txt
* core/src/main/resources/template/simple/submit.ftl
* core/src/test/resources/org/apache/struts2/views/jsp/ui/Submit-6.txt


> <s:submit> generates a value attribute for type=image which violates W3C
> ------------------------------------------------------------------------
>
>                 Key: WW-4630
>                 URL: https://issues.apache.org/jira/browse/WW-4630
>             Project: Struts 2
>          Issue Type: Bug
>         Environment: Windows Professional 7, with IBM Rad 8.5 and Webserver 
> 7.0
>            Reporter: Kendall Ponder
>            Assignee: Aleksandr Mashchenko
>            Priority: Trivial
>             Fix For: 2.5, 2.3.29
>
>
> I have the following <s:submit> code:
>       <s:submit action="shipment_deleteShipperFromChosenShipperViewList" 
> type="image" src="/llr/theme/delete.gif" 
> onclick="clearDirtyFlag();deleteShipperFromChosenShipperViewList('%{organizationInfo.orgId}');"
>  tabindex="16"/>
> which generates the following HTML:
>       <input type="image" alt="Submit" src="/llr/theme/delete.gif" 
> id="shipment_shipment_deleteShipperFromChosenShipperViewList" 
> name="action:shipment_deleteShipperFromChosenShipperViewList" value="Submit" 
> tabindex="16" 
> onclick="clearDirtyFlag();deleteShipperFromChosenShipperViewList('1');"/>
> The W3C Markup Validator marks the HTML as an error.  The error message is 
> > Attribute value not allowed on element input at this point.
> Evidently value is not an allowed attribute when the type is image. I asked 
> how do I keep Struts2 from generating the value attribute on Stack Overflow 
> and they recommended I create a Jira.  I hope I have done it correctly.  
> Thanks!



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to