Nesting business beans inside form beans

2005-05-27 Thread Nils Liebelt
Hi all, could I speed up my development by placing business beans inside a form bean using delegating methods to set it. I could init the business bean with a none bean method and only expose certain attributes of course validating the way i need it. I am interested if I place such a

Nesting business beans inside form beans

2005-05-27 Thread Nils Liebelt
Hi all, could I speed up my development by placing business beans inside a form bean using delegating methods to set it. I could init the business bean with a none bean method and only expose certain attributes of course validating the way i need it. I am interested if I place such a

Re: Nesting business beans inside form beans

2005-05-27 Thread Hubert Rabago
If you only store your form in request scope, Struts will create a new form object when the user submits it. It would also mean it will create a new instance of your business bean. To avoid this, you might consider placing your bean in session scope. Either way, though, you'll still have

Re: Nesting business beans inside form beans

2005-05-27 Thread Michael Jouravlev
Hi Hubert, I checked out your FormDef project, looks interesting. I need something like this for my dialog/wizard classes, and your project seems to fit. Few questions though. I did not look in the source code yet, but I read your doc page. What I do is I have a dialog/wizard bean, which is

Re: Nesting business beans inside form beans

2005-05-27 Thread Hubert Rabago
Hi Michael, On 5/27/05, Michael Jouravlev [EMAIL PROTECTED] wrote: Hi Hubert, * Is it possible to have a method, which would accept a reference to an existing bean? Yes, although the current set of convenience methods don't support it. My goal with FormUtils is to provide the basic