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 84754104A6 for ; Mon, 10 Mar 2014 18:43:34 +0000 (UTC) Received: (qmail 74168 invoked by uid 500); 10 Mar 2014 18:43:31 -0000 Delivered-To: apmail-struts-user-archive@struts.apache.org Received: (qmail 74036 invoked by uid 500); 10 Mar 2014 18:43:22 -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 74026 invoked by uid 99); 10 Mar 2014 18:43:20 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 10 Mar 2014 18:43:20 +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 (nike.apache.org: domain of fredand44@hotmail.com designates 157.55.1.157 as permitted sender) Received: from [157.55.1.157] (HELO dub0-omc2-s18.dub0.hotmail.com) (157.55.1.157) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 10 Mar 2014 18:43:12 +0000 Received: from DUB129-W13 ([157.55.1.136]) by dub0-omc2-s18.dub0.hotmail.com with Microsoft SMTPSVC(6.0.3790.4675); Mon, 10 Mar 2014 11:42:51 -0700 X-TMN: [pEivt6bBosXjdDUrJPNzHdT8djbvqjQW] 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: Mon, 10 Mar 2014 18:42:51 +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: 10 Mar 2014 18:42:51.0318 (UTC) FILETIME=[8A790D60:01CF3C90] X-Virus-Checked: Checked by ClamAV on apache.org Hello guys!=0A= =0A= Thank's for all help about this validate error.=0A= I hope I did this correct and posted a issue at:=0A= =0A= https://issues.apache.org/jira/browse/WW-4297=0A= =0A= Btw I will soon post my second question in a new fresh thread.=0A= =0A= Best regards=0A= Fredrik=0A= =0A= =0A= ----------------------------------------=0A= > From: fredand44@hotmail.com=0A= > To: user@struts.apache.org=0A= > Subject: RE: Why do I get this XHTML validation errors? (second attempt)= =0A= > Date: Sun=2C 9 Mar 2014 20:56:20 +0000=0A= >=0A= > 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 us= er.=0A= > So if I submit this form without any email-address there will be an error= message.=0A= > Of course that must be valid xhtml as well. The page with the error messa= ge looks like:=0A= >=0A= > 25
=0A= > 26 =0A= > 27 =0A= > 28 =0A= > 29 =0A= > 30 =0A= > 31 =0A= > 32 =0A= > 33 =0A= > 34 35>=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 docum= ent type you are using does not support that attribute for this element. Th= is error is often caused by incorrect use of the "Strict" document type wit= h a document that uses frames (e.g. you must use the "Transitional" documen= t type to get the "target" attribute)=2C or by using vendor proprietary ext= ensions such as "marginheight" (this is usually fixed by using CSS to achie= ve the desired effect instead).=0A= > This error may also result if the element itself is not supported in the = document type you are using=2C as an undefined element will have no support= ed attributes=3B in this case=2C see the element-undefined error message fo= r further information.=0A= > How to fix: check the spelling and case of the element and attribute=2C (= Remember XHTML is all lower-case) and/or check that they are both allowed i= n the chosen document type=2C and/or use CSS instead of this attribute. If = you received this error when using the element to incorporate flash= media 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= some jira-server?=0A= >=0A= > Best regards=0A= > Fredrik=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 wit= h=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= >>=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= >>>>>>