Sorry... to add...
Each Service may have a unknown set of documents...
E.g. Services:
001 Catering
002 Party
Documents:
001 Contract
002 Deposit
Should yield:
<input type="checkbox" name="Catering[0].id"
value="001">Contract
<input type="checkbox" name="Catering[1].id"
value="002">Deposit
<input type="checkbox" name="Party[0].id"
value="001">Contract
<input type="checkbox" name="Party[1].id"
value="002">Deposit
Thanks,
/A
-----Original Message-----
From: Amin Lalji [mailto:[EMAIL PROTECTED]
Sent: Wednesday, April 07, 2004 2:28 PM
To: 'Struts Users Mailing List'
Subject: DynaAction or Map Backed Form?
Hello All,
I have the following scenario:
I need to populate a form using a runtime generated set of form
properties...
Essentially I have two collections I pull from a database
Services (serviceID,serviceName)
Documents (documentID,documentName)
I want to populate a set of checkboxes for each service such that I achieve:
<input type="checkbox" name="serviceName[0].id"
value="documentID">documentName
Any ideas?
Thanks,
Amin
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]