struts-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jose L Martinez-Avial (JIRA)" <>
Subject [jira] [Commented] (WW-3908) FreeMarker textfield tag doesn't allow the new HTML5 required attribute
Date Mon, 29 Oct 2012 12:56:14 GMT


Jose L Martinez-Avial commented on WW-3908:

I believe that the reason for that is that required is an attribute defined in the TLD, so
it is not treated as a dynamic attribute, like other HTML5. I think the tag uses that attribute
for client-side validations, but if client-side validation is not used, then the tag does
not pass the attribute to the tag, like it does with the dynamic attributes. I have the same
> FreeMarker textfield tag doesn't allow the new HTML5 required attribute
> -----------------------------------------------------------------------
>                 Key: WW-3908
>                 URL:
>             Project: Struts 2
>          Issue Type: Bug
>    Affects Versions: 2.3.6
>         Environment: Windows 7 + JDK1.6.0_27 + The new Struts2 2.3.6 + FreeMarker 2.3.19
>            Reporter: Loic VSCT
> 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 :
> {code:html}
> <input type="text" required="required" id="test-X">
> {code}
> => I have tried to use the following code in a classic FTL file :
> {code:title=test.ftl|borderStyle=solid}
> <@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"/>
> {code}
> The HTML result is always :
> {code:html}
> <input type="text" id="test-X">
> {code}

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:

View raw message