Nice...

This only thing that scares me is that you are creating an empty DAF. Can you then validate the first DAF's indexed properties using the validator? I have read that you can do this.

Nathan Maves
Sun Microsystems


On Feb 11, 2004, at 11:52 AM, Mark Lowe wrote:


In a referring action.

DyanActionForm theForm = (DynaActionForm) form;

//could use dynabean also
DynaActionForm nestedForm = new DynaActionForm();

ArrayList nestedFormList = new ArrayList();
nestedFormList.add( nestedForm );

theForm.set("nestedForms", nestedFormList);


On 11 Feb 2004, at 18:41, Nathan Maves wrote:


Ok I got that part but what is the best way to populate that arraylist with other DynaActionForm?

Nathan Maves
Sun Microsystems


On Feb 11, 2004, at 8:36 AM, Mark Lowe wrote:


<form-property name="nestedForms" type="java.util.ArrayLIst" />


On 11 Feb 2004, at 16:18, Nathan Maves wrote:


What do you use to specify the type attribute of the form to be?

Nathan Maves
Sun Microsystems


On Feb 11, 2004, at 8:12 AM, Mark Lowe wrote:


Yep.. I've done this with arrayList before, don't know if you can use an array of DynaForm's but I'd imagine you can. But it works with ArrayList.

On 11 Feb 2004, at 15:52, Nathan Maves wrote:

I need a DynaFormBean that has an array property. I want this property to be of made up of a second DynaFormBean that I define. It this possible?


Nathan Maves Sun Microsystems


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


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



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


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


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


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


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

Reply via email to