Hi Everyone,

I have an application state object which contains a list of objects which in
turn contain a list of boolean options that I want to set using checkboxes.

I am trying to dynamically create Checkboxes in a form using a loop and I
have ran into a few problems (concerning the loop).  As I understand so far,
there are a few ways to do this.

1. Make the objects in question implement Serializable so that the normal
state saving logic works.  I have tried this approach, but when I submit the
form, these changes are not persisted within my ASO.  What am I missing
here?

2. Set the volatile parameter on the loop.  This works and upon submitting
the form, the changes are reflected by my ASO.  At first this seemed great,
but if the list of objects in my ASO changes and the page that contains the
form and loop is not refreshed. and the user submits the form.  I get a
NoSuchElementException from the loop component.  Again, what am I missing
here, can I catch this exception and refresh the page when the submit button
is clicked?

3.  Use a primary key encoder.  This seems like a complete pain.  And the
ASO is not stored in the database.

So my question is, what is the correct way to achieve this?  If you could
share some code then it would be an added bonus!

Your time and help is much appreciated.

Many Thanks,
Daniel
-- 
View this message in context: 
http://www.nabble.com/Forms%2C-Loops-and-Checkboxes%2C-Please-Help-tp22229675p22229675.html
Sent from the Tapestry - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org

Reply via email to