Hello
A simple answer (...but complex on the long run)
---
1. PRE-PROCESSING
// first row
model.terrains[0].id= my_first_id;
model.terrains[0].terr_name = my_first_terr_name;
model.terrains[0].terr_size = my_first_terr_size;
model.terrains[0].select=
Fabrizio
Thanks for the long and detailed reply - much appreciated!
Quick response _ I have to take the simple approach now .. I have
looked at Hibernate before and the leaning curve is too complex
to manage for this project (never mind I have to learn JavaBeans
as well!). Perhaps next year,
Hello Derek,
Answers to your questions:
1. There's no need to instantiate the model.terrains[] array. An
assignment like model.terrains[0].id = xxx will automagically create
your first repeater row.
2. ...Must I store all the IDs in a separate array
before they go to the form, and then
I need to be able to do some pre- and post- processing of values
that will be contained in repeater rows in a CForm.
The form defn will look something like:
fd:widgets
fd:field id=title required=true
fd:labelTitle/fd:label
fd:datatype base=string/
/fd:field
fd:repeater