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

Musachy Barroso commented on WW-2892:
-------------------------------------

I understand the problem, the reason while it is this way is to let people know 
that the name is missing, which is a bad thing most of the time, except in the 
use case that you described. It is a trade off, but JS usage will be a lot 
smaller than normal usage, in which case the current behaviors is desirable.  
You can always overwrite the templates that you use and remove the "name" 
attribute, as a workaround.

> Name attribute defaults to empty string on UI tags
> --------------------------------------------------
>
>                 Key: WW-2892
>                 URL: https://issues.apache.org/struts/browse/WW-2892
>             Project: Struts 2
>          Issue Type: Improvement
>          Components: Plugin - Tags
>    Affects Versions: 2.1.2
>            Reporter: Jeff Klein
>            Priority: Minor
>             Fix For: 2.1.7
>
>
> When a name is not given to a UI tag, is defaults to the empty string;
> <select name="">
> this will send a parameter without a name to the server;
> view.action?=value
> Can the name attribute just be dropped if not given? This would be useful for 
> controls that are only used for JS actions, and which don't need to submit 
> their values to the server. 

-- 
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