You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@struts.apache.org by "Lukasz Lenart (JIRA)" <ji...@apache.org> on 2012/09/06 14:58:07 UTC

[jira] [Resolved] (WW-3644) placeHolder attribute for s:textfield/s:password being dynamic

     [ https://issues.apache.org/jira/browse/WW-3644?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Lukasz Lenart resolved WW-3644.
-------------------------------

       Resolution: Fixed
    Fix Version/s:     (was: 2.3.1)
                   2.3.5

Changed logic to parse only values enclosed in %{ and } as an expresion
                
> placeHolder attribute for s:textfield/s:password being dynamic
> --------------------------------------------------------------
>
>                 Key: WW-3644
>                 URL: https://issues.apache.org/jira/browse/WW-3644
>             Project: Struts 2
>          Issue Type: New Feature
>          Components: Expression Language
>    Affects Versions: 2.2.3
>         Environment: struts2
>            Reporter: Stephen Ince
>            Assignee: Lukasz Lenart
>              Labels: features
>             Fix For: 2.3.5
>
>
> The placeholder field fot s:textfield and s:password should evaluate ognl expressions. Namely resource key replacements.
> e.g
> <s:textfield  theme="simple" placeholder="%{getText('placeHolder.Username')}" id="j_username" name="j_username" cssStyle="width:180px" />
> This is an issue for HTML5.
> I think Lukasz Lenart suggested making all attributes dynamic. 
>  
> AbstractUITag, line 294
>     public void setDynamicAttribute(String uri, String localName,
> Object value) throws JspException {
>         dynamicAttributes.put(localName, value);
>     }
> and replace with
>     public void setDynamicAttribute(String uri, String localName,
> Object value) throws JspException {
>         dynamicAttributes.put(localName, findString(value));
>     }

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira