Return-Path: Delivered-To: apmail-jakarta-struts-user-archive@www.apache.org Received: (qmail 63704 invoked from network); 21 Nov 2003 19:02:47 -0000 Received: from daedalus.apache.org (HELO mail.apache.org) (208.185.179.12) by minotaur-2.apache.org with SMTP; 21 Nov 2003 19:02:47 -0000 Received: (qmail 99830 invoked by uid 500); 21 Nov 2003 19:02:19 -0000 Delivered-To: apmail-jakarta-struts-user-archive@jakarta.apache.org Received: (qmail 99802 invoked by uid 500); 21 Nov 2003 19:02:19 -0000 Mailing-List: contact struts-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Struts Users Mailing List" Reply-To: "Struts Users Mailing List" Delivered-To: mailing list struts-user@jakarta.apache.org Received: (qmail 99787 invoked from network); 21 Nov 2003 19:02:18 -0000 Received: from unknown (HELO mail.si.fr.atosorigin.com) (195.68.44.135) by daedalus.apache.org with SMTP; 21 Nov 2003 19:02:18 -0000 Received: from mailmir.si.fr.atosorigin.com (mailmir.si.fr.atosorigin.com [55.2.7.165]) by mail.si.fr.atosorigin.com (8.12.10/8.12.10) with ESMTP id hALJ2MfG023995 for ; Fri, 21 Nov 2003 20:02:22 +0100 Received: from 75A03708 ([55.3.65.153]) by mailmir.si.fr.atosorigin.com (8.12.10/8.12.10) with SMTP id hALIvvOg017809 for ; Fri, 21 Nov 2003 19:57:57 +0100 Message-ID: <003d01c3b061$687fd430$99410337@75A03708> From: =?iso-8859-1?Q?Rapha=EBl_di_Cicco?= To: "Struts Users Mailing List" References: <008301c3af53$4c184070$99410337@75A03708> <3FBDDF77.5000007@cyberspaceroad.com> Subject: Re: tokens creating a field in my forms Date: Fri, 21 Nov 2003 19:58:10 +0100 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 8bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2800.1158 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 X-RelayAddrIn-Show: (55.3.65.153) X-RelayAddrIn-Local: Yes X-Scanned-By: MIMEDefang 2.38 X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N OK, I was thinking the same thing. Referring to fields by id is better but less convenient when all your fields are accessed by maps therefore their names is something like "formProp(Foo.foo.fooo)". ----- Original Message ----- From: "Adam Hardy" To: "Struts Users Mailing List" Sent: Friday, November 21, 2003 10:48 AM Subject: Re: tokens creating a field in my forms > On 11/20/2003 11:44 AM Rapha�l di Cicco wrote: > > I understand how tokens work. I'm currently modifying my application to use tokens every time possible. The thing is that I'm doing validation with javascript on my JSPs, and very often checking form elements with the index. > > When using token, struts creates a form element at index 0, so every validation I do is not working anymore since everything is reindexed by 1. > > > > I would like the struts form to place the token at the end of the form. Is that possible? > > Hi Raphael, > without looking at the source code I can't definitely say that it is > impossible, but it is highly unlikely. > > Technically speaking you would be better off referring to your fields in > javascript by id, rather than by index, since this situation with tokens > is not the only one that will give you this problem. However I realise > this will not be helpful to you if you have already finished the > javascript code! Sorry :( > > Adam > -- > struts 1.1 + tomcat 5.0.12 + java 1.4.2 > Linux 2.4.20 RH9 > > --------------------------------------------------------------------- > To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org > For additional commands, e-mail: struts-user-help@jakarta.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: struts-user-help@jakarta.apache.org