Return-Path: X-Original-To: apmail-struts-user-archive@www.apache.org Delivered-To: apmail-struts-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 8B98010BF7 for ; Sun, 9 Mar 2014 20:56:51 +0000 (UTC) Received: (qmail 50822 invoked by uid 500); 9 Mar 2014 20:56:49 -0000 Delivered-To: apmail-struts-user-archive@struts.apache.org Received: (qmail 50713 invoked by uid 500); 9 Mar 2014 20:56:48 -0000 Mailing-List: contact user-help@struts.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Struts Users Mailing List" Reply-To: "Struts Users Mailing List" Delivered-To: mailing list user@struts.apache.org Received: (qmail 50700 invoked by uid 99); 9 Mar 2014 20:56:48 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 09 Mar 2014 20:56:48 +0000 X-ASF-Spam-Status: No, hits=0.2 required=5.0 tests=FREEMAIL_ENVFROM_END_DIGIT,RCVD_IN_DNSWL_NONE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of fredand44@hotmail.com designates 157.55.1.156 as permitted sender) Received: from [157.55.1.156] (HELO dub0-omc2-s17.dub0.hotmail.com) (157.55.1.156) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 09 Mar 2014 20:56:42 +0000 Received: from DUB129-W50 ([157.55.1.137]) by dub0-omc2-s17.dub0.hotmail.com with Microsoft SMTPSVC(6.0.3790.4675); Sun, 9 Mar 2014 13:56:20 -0700 X-TMN: [aT2JhuIbMm0a0ZrXSwRpYcAJcGwK7UGj] X-Originating-Email: [fredand44@hotmail.com] Message-ID: From: Fredrik Andersson To: Struts Users Mailing List Subject: RE: Why do I get this XHTML validation errors? (second attempt) Date: Sun, 9 Mar 2014 20:56:20 +0000 Importance: Normal In-Reply-To: References: ,,, ,, Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginalArrivalTime: 09 Mar 2014 20:56:20.0510 (UTC) FILETIME=[05E903E0:01CF3BDA] X-Virus-Checked: Checked by ClamAV on apache.org Hello again guys!=0A= =0A= I might need to bother you about this presumptive bug also.=0A= =0A= I got struts-user-input-validations in the form.=0A= For eg one field is a email-address-field and must be filled in by the user= .=0A= So if I submit this form without any email-address there will be an error m= essage.=0A= Of course that must be valid xhtml as well. The page with the error message= looks like:=0A= =0A= 25
=0A= 26 =0A= 27 =0A= 28 =0A= 29 =0A= 30 =0A= 31 =0A= 32 =0A= 33 =0A= 34 =0A= 36 =0A= ...=0A= =0A= I get this xhtml-validation-message from w3c:=0A= =0A= Line 27=2C Column 23: there is no attribute "errorFor"=0A= =0A= =0A= You have used the attribute named above in your document=2C but the documen= t type you are using does not support that attribute for this element. This= error is often caused by incorrect use of the "Strict" document type with = a document that uses frames (e.g. you must use the "Transitional" document = type to get the "target" attribute)=2C or by using vendor proprietary exten= sions such as "marginheight" (this is usually fixed by using CSS to achieve= the desired effect instead).=0A= This error may also result if the element itself is not supported in the do= cument type you are using=2C as an undefined element will have no supported= attributes=3B in this case=2C see the element-undefined error message for = further information.=0A= How to fix: check the spelling and case of the element and attribute=2C (Re= member XHTML is all lower-case) and/or check that they are both allowed in = the chosen document type=2C and/or use CSS instead of this attribute. If yo= u received this error when using the element to incorporate flash m= edia in a Web page=2C see the FAQ item on valid flash.=0A= =0A= What do you you think guys? The tr-tag does not look OK according to me=2C = but I might be wrong? What is this attribue "errorFor"?=0A= =0A= Btw I have never ever posted a bug about the first thing. If you need me to= do it I would love to help but how do I do it? Do I need some account to s= ome jira-server?=0A= =0A= Best regards=0A= Fredrik =A0=0A= =0A= ----------------------------------------=0A= > From: lukaszlenart@apache.org=0A= > Date: Fri=2C 7 Mar 2014 22:04:13 +0100=0A= > Subject: Re: Why do I get this XHTML validation errors? (second attempt)= =0A= > To: user@struts.apache.org=0A= >=0A= > Yes=2C that would be the best solution.=0A= >=0A= > 2014-03-07 22:02 GMT+01:00 Paul Benedict :=0A= >> We need a JIRA ticket to solve this permanently.=0A= >>=0A= >>=0A= >> On Fri=2C Mar 7=2C 2014 at 2:37 PM=2C Lukasz Lenart wrote:=0A= >>=0A= >>> YooHoo! That's suppose to work template inheritance!=0A= >>>=0A= >>> 2014-03-07 21:03 GMT+01:00 Fredrik Andersson := =0A= >>>> Hello guys!=0A= >>>>=0A= >>>> I think you solved it!=0A= >>>>=0A= >>>> I put a new file "hidden.ftl" in my resources-folder (I use maven with= =0A= >>> eclipse):=0A= >>>> resources/template/xhtml/hidden.ftl=0A= >>>>=0A= >>>> The content in hidden.ftl is:=0A= >>>>=0A= >>>> =0A= >>>> =0A= >>>> =0A= >>>>=0A= >>>> Now it validates fine!=0A= >>>>=0A= >>>> Best regards=0A= >>>> Fredrik=0A= >>>>=0A= >>>>=0A= >>>>=0A= >>>> ----------------------------------------=0A= >>>>> From: thechrispratt@gmail.com=0A= >>>>> Date: Thu=2C 6 Mar 2014 12:45:00 -0800=0A= >>>>> Subject: Re: Re: Why do I get this XHTML validation errors? (second= =0A= >>> attempt)=0A= >>>>> To: user@struts.apache.org=0A= >>>>>=0A= >>>>> To elaborate on Dave's point=2C try:=0A= >>>>>=0A= >>>>> =0A= >>>>> =0A= >>>>> =0A= >>>>>=0A= >>>>> (*Chris*)=0A= >>>>>=0A= >>>>>=0A= >>>>> On Thu=2C Mar 6=2C 2014 at 12:26 PM=2C Dave Newton =0A= >>> wrote:=0A= >>>>>=0A= >>>>>> On Thu=2C Mar 6=2C 2014 at 3:01 PM=2C Fredrik Andersson <=0A= >>> fredand44@hotmail.com=0A= >>>>>>>wrote:=0A= >>>>>>=0A= >>>>>>> I have tride to put the hidden attributet att:=0A= >>>>>>> 1 first code line after the form-start-tag=0A= >>>>>>> 2 before the submit-tag=0A= >>>>>>> 3 after the submit-tag=2C before form-end-tag.=0A= >>>>>>> None of the attempt validates.=0A= >>>>>>> So If you guys got any idea how to solve this mystery plast let me= =0A= >>> know.=0A= >>>>>>>=0A= >>>>>>=0A= >>>>>> You could try what I suggested until the hidden tags have xhtml=0A= >>> templates=0A= >>>>>> that emit correct HTML.=0A= >>>>>>=0A= >>>>>> Dave=0A= >>>>>>=0A= >>>> ---------------------------------------------------------------------= =0A= >>>> To unsubscribe=2C e-mail: user-unsubscribe@struts.apache.org=0A= >>>> For additional commands=2C e-mail: user-help@struts.apache.org=0A= >>>>=0A= >>>=0A= >>> ---------------------------------------------------------------------= =0A= >>> To unsubscribe=2C e-mail: user-unsubscribe@struts.apache.org=0A= >>> For additional commands=2C e-mail: user-help@struts.apache.org=0A= >>>=0A= >>>=0A= >>=0A= >>=0A= >> --=0A= >> Cheers=2C=0A= >> Paul=0A= >=0A= > ---------------------------------------------------------------------=0A= > To unsubscribe=2C e-mail: user-unsubscribe@struts.apache.org=0A= > For additional commands=2C e-mail: user-help@struts.apache.org=0A= > = --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@struts.apache.org For additional commands, e-mail: user-help@struts.apache.org
Email address is required!
=0A= >>>> <#include "/${parameters.templateDir}/simple/hidden.ftl"=0A= >>> />=0A= >>>>
=0A= >>>>> // both hidden fields=0A= >>>>>