RE: Indexed Properties. Maintaining Order

2006-09-21 Thread Strachan, Paul
Hi Puneet, When I re-read your original mail I notice you use DHTML to add rows, so my approach/thoughts may not be appropriate for you. I use DynaForms with ArrayLists of objects. In the form I use the logic:iterate with indexed=true on the html tags. If I need to "dynamically" add another row

Re: Indexed Properties. Maintaining Order

2006-09-21 Thread Puneet Lakhina
On 9/21/06, Niall Pemberton <[EMAIL PROTECTED]> wrote: As you found out there is no way of knowing the order the browser/client will submit request parameters, so if you want to use indexed properties in this way you need to "grow" the list to accomodate the size of the indexed property being se

Re: Indexed Properties. Maintaining Order

2006-09-21 Thread Puneet Lakhina
On 9/21/06, Strachan, Paul <[EMAIL PROTECTED]> wrote: A List is an ordered collection so it doesnt make sense that the order changes. Also, depending on which Map implementation you use ordering may not be guaranteed. I would basically have the index in case of indexed properties as my key.

RE: Indexed Properties. Maintaining Order

2006-09-21 Thread Strachan, Paul
A List is an ordered collection so it doesnt make sense that the order changes. Also, depending on which Map implementation you use ordering may not be guaranteed. I frequently use indexed properties with List and have not experienced this problem. You may need to check the generated html sou

Re: Indexed Properties. Maintaining Order

2006-09-21 Thread Niall Pemberton
As you found out there is no way of knowing the order the browser/client will submit request parameters, so if you want to use indexed properties in this way you need to "grow" the list to accomodate the size of the indexed property being set. So you could do something like the following: publi