Forms with childforms

2002-01-11 Thread storck

In the docu of the FormToPropertyMapper of Andrej I saw that he had a form
with a cildform as property.
How do I config struts that a form has a childform and where do I use it?

Thanks!


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




RE: Forms with childforms

2002-01-11 Thread Sobkowski, Andrej

Hello,

check out Arron's nested tags site:

http://www.keyboardmonkey.com/struts 

In general, there's nothing you _need_ to do to use nested forms, it's a
built-in functionality of Struts (I'm using a nightly build of the end of
November). In other words, when you define your JSP property attribute as:

html:text property=employee.financialData.salary /

your ActionForm will automatically be populated by calling

yourForm.getEmployee().getFinancialData().setSalary(valueFromHTTPRequestFrom
HTMLInput)

The fact that yourForm.getEmployee() returns a child form (ie a
EmployeeActionForm) or not doesn't really matter... basically it's just a
cool way to populate your internal properties.

HTH

Andrej

PS. 'hope I haven't said anything wrong... :)

Andrej

 -Original Message-
 From: storck [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, January 10, 2002 4:03 AM
 To: Struts User (E-Mail)
 Subject: Forms with childforms
 
 
 In the docu of the FormToPropertyMapper of Andrej I saw 
 that he had a form
 with a cildform as property.
 How do I config struts that a form has a childform and where 
 do I use it?
 
 Thanks!
 
 
 --
 To unsubscribe, e-mail:   
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail: 
 mailto:[EMAIL PROTECTED]