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

Update UI tags in FreeMarker to allow new HTML input types

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.3.4.1
    • 2.3.7
    • None
    • None
    • Windows 7 + JDK1.6.0_27 + Struts2 2.3.4.1 + FreeMarker 2.3.19

    • Important

    Description

      It is impossible to use new HTML5 input types for forms with the tags currently available in FreeMarker.

      => For example, I want to use the new email input type in order to have the following HTML code :

      <input type="email" name="testInput">.
      

      => If I use the textfield tag, which is the only one I can use for this purpose, I always have the type text in the HTML result code.

      test.ftl
      <@s.textfield type="email" name="testInput" />
      

      The HTML result is always :

      <input type="text" name="testInput">
      

      Attachments

        Activity

          People

            jogep Johannes Geppert
            vsct Loic VSCT
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: