You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@struts.apache.org by "kernel (JIRA)" <ji...@apache.org> on 2008/04/18 15:10:05 UTC

[jira] Commented: (WW-2092) Update UI tags to allow custom html tag attributes

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

kernel commented on WW-2092:
----------------------------

I understand that this matter requires to be thought through before any further actions, although turning off the autocompletition feature is important in security sensitive cases.(not only for input, but for form tags too)

We've just started to work on a project that can't go live without the availability of this feature, and it would be great if it was included in one of the versions before 2.1.



> 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: Plugin - Tags
>    Affects Versions: 2.0.9, 2.1.x
>            Reporter: zhouyanming
>            Assignee: James Holmes
>             Fix For: 2.1.x
>
>         Attachments: extra.patch, 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.