Struts 2
  1. Struts 2
  2. WW-3908

FreeMarker textfield tag doesn't allow the new HTML5 required attribute

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 2.3.7
    • Fix Version/s: 2.3.12
    • Component/s: None
    • Labels:
      None
    • Environment:

      Windows 7 + JDK1.6.0_27 + The new Struts2 2.3.6 + FreeMarker 2.3.19

    • Flags:
      Important

      Description

      It is impossible to use the new HTML5 required attribute with the textfield tag currently available in FreeMarker. Other HTML5 attributes seem to work as expected.

      => For example, I want to use the new required attribute in order to have the following very simple HTML code :

      <input type="text" required="required" id="test-X">
      

      => I have tried to use the following code in a classic FTL file :

      test.ftl
      <@s.textfield required="required" id="test-1"/>
      <@s.textfield required="true" id="test-2"/>
      <@s.textfield required=required id="test-3"/>
      <@s.textfield required=true id="test-4"/>
      

      The HTML result is always :

      <input type="text" id="test-X">
      

        Issue Links

          Activity

          No work has yet been logged on this issue.

            People

            • Assignee:
              Lukasz Lenart
              Reporter:
              Loic VSCT
            • Votes:
              1 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development