Hi everyone,

I'm having a problem with an array out of bounds exception after a user
selects entries from a list drop down and then presses submit and I'm not
sure what the cause is...

The drop down list is populated by entries in a database which can be
changing at any time. This means once the drop down is drawn, behind the
scenes the db entries could be different. When the user presses the submit
button I create a temp of the selections and the list (because the list gets
updated in the java code before it gets to the form method) so that what
gets submitted is from what the user saw and not what is in the db.

The issue is then when the drop down gets redrawn after the submission, it
throws an array out of bounds error if the list has gotten shorter. I use an
array for the list of values, an array for the selections (true or false),
and use a for loop in tapestry to create the drop down list...

I've reset the selection array to match the length of the value array and
reset the index of the for loop so I'm not sure where to go from here...Any
help would be much appreciated!

Thanks!
-- 
View this message in context: 
http://www.nabble.com/Drop-down-list-Error-on-Refresh-tp19903365p19903365.html
Sent from the Tapestry - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to