Return-Path: Delivered-To: apmail-jakarta-struts-user-archive@www.apache.org Received: (qmail 80981 invoked from network); 1 Mar 2004 09:41:32 -0000 Received: from daedalus.apache.org (HELO mail.apache.org) (208.185.179.12) by minotaur-2.apache.org with SMTP; 1 Mar 2004 09:41:32 -0000 Received: (qmail 46995 invoked by uid 500); 1 Mar 2004 09:40:48 -0000 Delivered-To: apmail-jakarta-struts-user-archive@jakarta.apache.org Received: (qmail 46946 invoked by uid 500); 1 Mar 2004 09:40:47 -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 46752 invoked from network); 1 Mar 2004 09:40:45 -0000 Received: from unknown (HELO gridnode.com) (202.83.97.26) by daedalus.apache.org with SMTP; 1 Mar 2004 09:40:45 -0000 Received: from andrew (pc209 [192.168.213.209]) by gridnode.com (8.12.9/8.12.4) with SMTP id i219tgVm019912 for ; Mon, 1 Mar 2004 17:55:42 +0800 Reply-To: From: "Andrew Hill" To: "Struts" Subject: Using commons-collections lazylist for nested actionforms Date: Mon, 1 Mar 2004 17:36:41 +0800 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0) X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 Importance: Normal 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 Im about to have a go using the lazylist stuff in commons-collections 2.1 to implement some nested actionforms stuff (previously Ive always been initialising the lists the hard way in my reset method!). http://jakarta.apache.org/commons/collections/api/org/apache/commons/collect ions/ListUtils.html Anyhow , one thing that struck me from reading the description was the bit about... Object obj = lazy.get(3); After the above code is executed, obj will contain a new Date instance. Furthermore, that Date instance is the fourth element in the list. The first, second, and third element are all set to null. ...how the elements before the requested one are initialised to null. Does this mean that Im going to encounter problems if the browser decides to submit my parameters in the wrong order for example: foo[2].bob=blah foo[2].baz=yada foo[1].bob=blah foo[1].baz=yada foo[0].bob=blah foo[0].baz=yada My html will have the items in the correct order - but does that necessarily mean the browser has to submit in that order - and if it doesnt will my use of the lazylist stuff be broken? (And I do already know that some broswers submit fields in different orders if you happen to have been messing round with that html on the clientside using javascript to modify the dom synamically though I wont be doing that here) --------------------------------------------------------------------- To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: struts-user-help@jakarta.apache.org