Return-Path: X-Original-To: apmail-struts-issues-archive@minotaur.apache.org Delivered-To: apmail-struts-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 858FEEFC3 for ; Thu, 17 Jan 2013 07:20:14 +0000 (UTC) Received: (qmail 49563 invoked by uid 500); 17 Jan 2013 07:20:14 -0000 Delivered-To: apmail-struts-issues-archive@struts.apache.org Received: (qmail 49224 invoked by uid 500); 17 Jan 2013 07:20:13 -0000 Mailing-List: contact issues-help@struts.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@struts.apache.org Delivered-To: mailing list issues@struts.apache.org Received: (qmail 49163 invoked by uid 99); 17 Jan 2013 07:20:12 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 17 Jan 2013 07:20:12 +0000 Date: Thu, 17 Jan 2013 07:20:12 +0000 (UTC) From: "Lukasz Lenart (JIRA)" To: issues@struts.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (WW-3908) FreeMarker textfield tag doesn't allow the new HTML5 required attribute MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/WW-3908?page=3Dcom.atlassian.ji= ra.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=3D1355594= 3#comment-13555943 ]=20 Lukasz Lenart commented on WW-3908: ----------------------------------- The problem is a bit different - there is already attribute "required"=C2= =A0but used to display "*" next to the label to mark field as required ;-) I think it should be renamed to requiredLabel and then support for HTML5 re= quired attribute will available OOTB :-) =20 > 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 + Fr= eeMarker 2.3.19 > Reporter: Loic VSCT > Fix For: 2.3.9 > > > It is impossible to use the new HTML5 *required* attribute with the *text= field* tag currently available in FreeMarker. Other HTML5 attributes seem t= o work as expected. > =3D> For example, I want to use the new *required* attribute in order to = have the following very simple HTML code : > {code:html} > > {code} > =3D> I have tried to use the following code in a classic FTL file : > {code:title=3Dtest.ftl|borderStyle=3Dsolid} > <@s.textfield required=3D"required" id=3D"test-1"/> > <@s.textfield required=3D"true" id=3D"test-2"/> > <@s.textfield required=3Drequired id=3D"test-3"/> > <@s.textfield required=3Dtrue id=3D"test-4"/> > {code} > The HTML result is always : > {code:html} > > {code} -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrato= rs For more information on JIRA, see: http://www.atlassian.com/software/jira