struts-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Wes Wannemacher (JIRA)" <>
Subject [jira] Commented: (WW-3207) Struts 2 submit tag is missing an "alt" attribute for type="image"
Date Mon, 21 Sep 2009 19:41:48 GMT


Wes Wannemacher commented on WW-3207:

>> Having the label attribute handle the alt attribute's job isn't the most obvious

yeah, it's not optimum, but after looking a little closer at this -

You will probably understand the reason why I don't want to add another attribute. There might
be a better solution, currently the FM template basically says - if the type is 'image' and
a 'label' attribute is specified, use it as 'alt' 

Another approach would be to say if the type is 'image' and there is an 'alt' specified, use
it, otherwise go through the previous tests... But, then again, I figured that just pointing
out you could use label= would be good enough. 

> Struts 2 submit tag is missing an "alt" attribute for type="image"
> ------------------------------------------------------------------
>                 Key: WW-3207
>                 URL:
>             Project: Struts 2
>          Issue Type: Bug
>          Components: Plugin - Tags
>            Reporter: Dave Schindler
>            Priority: Minor
>             Fix For: 2.1.8
> Example:
> <s:submit type="image" src="image"/>
> renders as
> <input alt="Submit" src="image" id="someForm_0" value="Submit" type="image">
> The alt attribute should be customizable.

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

View raw message