[ 
https://issues.apache.org/struts/browse/WW-2092?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_41911
 ] 

Don Brown commented on WW-2092:
-------------------------------

I'm not so sure this should go into 2.0.11.  This seems like a bigger feature 
we should think through more.  I don't really like the idea of stuffing extra 
attributes in this manner, and would prefer something more structured like the 
var-arg-type functionality for jsp tags.  In fact, I'm pretty sure this feature 
needs more review/discussion before it should go in.

> Update UI tags to allow custom html tag attributes
> --------------------------------------------------
>
>                 Key: WW-2092
>                 URL: https://issues.apache.org/struts/browse/WW-2092
>             Project: Struts 2
>          Issue Type: Improvement
>          Components: Views
>    Affects Versions: 2.0.9, 2.1.x
>            Reporter: zhouyanming
>            Assignee: James Holmes
>             Fix For: 2.0.11
>
>         Attachments: src.zip
>
>
> for example  <input type="text" name="text" autocomplete="off"/> can't use 
> <s:textfield name="test" autocomplete="off"/> because autocomplete is not 
> valid for this jsp tag.
> I suggest add a new jsp tag attribute for all UI tags like this
> <s:textfield name="test" 
> tagAttributes="#{'autocomplete':'off','onsuccess':'alert(\'success\')','onfailure':'alert(\'failure\')'}"/>
> tagAttributes is a map,and this tag result to
> <input type="text" name="text" autocomplete="off" 
> onsuccess="alert('success')" onfailure="alert('failure')"/>
> also can add another attribute 'templateParameters',this attribute like 
> 'tagAttributes',but it's used for custom freemarker template.

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