struts-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hudson (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (WW-3908) FreeMarker textfield tag doesn't allow the new HTML5 required attribute
Date Thu, 17 Jan 2013 09:58:15 GMT

    [ https://issues.apache.org/jira/browse/WW-3908?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13556024#comment-13556024
] 

Hudson commented on WW-3908:
----------------------------

Integrated in Struts2-JDK6 #617 (See [https://builds.apache.org/job/Struts2-JDK6/617/])
    WW-3908 renames required attribute into requiredLabel to allow support of Html5 required
attribute (Revision 1434580)

     Result = SUCCESS
lukaszlenart : 
Files : 
* /struts/struts2/trunk/core/src/main/java/org/apache/struts2/components/UIBean.java
* /struts/struts2/trunk/core/src/main/java/org/apache/struts2/views/jsp/ui/AbstractUITag.java
* /struts/struts2/trunk/core/src/site/resources/tags/a.html
* /struts/struts2/trunk/core/src/site/resources/tags/actionerror.html
* /struts/struts2/trunk/core/src/site/resources/tags/actionmessage.html
* /struts/struts2/trunk/core/src/site/resources/tags/ajax/a.html
* /struts/struts2/trunk/core/src/site/resources/tags/ajax/autocompleter.html
* /struts/struts2/trunk/core/src/site/resources/tags/ajax/datetimepicker.html
* /struts/struts2/trunk/core/src/site/resources/tags/ajax/div.html
* /struts/struts2/trunk/core/src/site/resources/tags/ajax/submit.html
* /struts/struts2/trunk/core/src/site/resources/tags/ajax/tabbedpanel.html
* /struts/struts2/trunk/core/src/site/resources/tags/ajax/textarea.html
* /struts/struts2/trunk/core/src/site/resources/tags/ajax/tree.html
* /struts/struts2/trunk/core/src/site/resources/tags/ajax/treenode.html
* /struts/struts2/trunk/core/src/site/resources/tags/checkbox.html
* /struts/struts2/trunk/core/src/site/resources/tags/checkboxlist.html
* /struts/struts2/trunk/core/src/site/resources/tags/combobox.html
* /struts/struts2/trunk/core/src/site/resources/tags/component.html
* /struts/struts2/trunk/core/src/site/resources/tags/debug.html
* /struts/struts2/trunk/core/src/site/resources/tags/div.html
* /struts/struts2/trunk/core/src/site/resources/tags/doubleselect.html
* /struts/struts2/trunk/core/src/site/resources/tags/fielderror.html
* /struts/struts2/trunk/core/src/site/resources/tags/file.html
* /struts/struts2/trunk/core/src/site/resources/tags/form.html
* /struts/struts2/trunk/core/src/site/resources/tags/head.html
* /struts/struts2/trunk/core/src/site/resources/tags/hidden.html
* /struts/struts2/trunk/core/src/site/resources/tags/inputtransferselect.html
* /struts/struts2/trunk/core/src/site/resources/tags/label.html
* /struts/struts2/trunk/core/src/site/resources/tags/optiontransferselect.html
* /struts/struts2/trunk/core/src/site/resources/tags/password.html
* /struts/struts2/trunk/core/src/site/resources/tags/radio.html
* /struts/struts2/trunk/core/src/site/resources/tags/reset.html
* /struts/struts2/trunk/core/src/site/resources/tags/select.html
* /struts/struts2/trunk/core/src/site/resources/tags/submit.html
* /struts/struts2/trunk/core/src/site/resources/tags/textarea.html
* /struts/struts2/trunk/core/src/site/resources/tags/textfield.html
* /struts/struts2/trunk/core/src/site/resources/tags/token.html
* /struts/struts2/trunk/core/src/site/resources/tags/updownselect.html
* /struts/struts2/trunk/core/src/test/java/org/apache/struts2/views/freemarker/FreeMarkerResultTest.java
* /struts/struts2/trunk/core/src/test/resources/org/apache/struts2/views/freemarker/dynaAttributes.ftl

                
> FreeMarker textfield tag doesn't allow the new HTML5 required attribute
> -----------------------------------------------------------------------
>
>                 Key: WW-3908
>                 URL: https://issues.apache.org/jira/browse/WW-3908
>             Project: Struts 2
>          Issue Type: Bug
>    Affects Versions: 2.3.7
>         Environment: Windows 7 + JDK1.6.0_27 + The new Struts2 2.3.6 + FreeMarker 2.3.19
>            Reporter: Loic VSCT
>            Assignee: Lukasz Lenart
>             Fix For: 2.3.9
>
>
> 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: http://www.atlassian.com/software/jira

Mime
View raw message