Uploaded image for project: 'Struts 2'
  1. Struts 2
  2. WW-3644

placeHolder attribute for s:textfield/s:password being dynamic

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.2.3
    • 2.3.7
    • Expression Language
    • struts2

    Description

      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)); }

      Attachments

        Activity

          People

            lukaszlenart Lukasz Lenart
            since Stephen Ince
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: