RE: Database backed forms

2004-03-19 Thread Brendan Richards
torActionForm to do just that. Don't worry - I've realised the error of my ways and am moving my code into actions where it belongs =) -Original Message- From: Wendy Smoak [mailto:[EMAIL PROTECTED] Sent: 19 March 2004 14:58 To: Struts Users Mailing List Subject: RE: Database back

Re: Database backed forms

2004-03-19 Thread as as
ng about it... > > Thanks. > > -Original Message- > From: Mark Lowe [mailto:[EMAIL PROTECTED] > Sent: 19 March 2004 11:41 > To: Struts Users Mailing List > Subject: Re: Database backed forms > >> How would you suggest implementing view/edit functionality withou

RE: Database backed forms

2004-03-19 Thread Wendy Smoak
> From: Brendan Richards [mailto:[EMAIL PROTECTED] > However, in most applications I write I don't want to only input data > but to view and edit existing data as well. For me ActionForms seem to > be the best way to code an input/output layer between the browser and > the backend. > In order to

Re: Database backed forms

2004-03-19 Thread Mark Lowe
7;submitEdit' action. Sounds like a much better way of going about it... Thanks. -Original Message- From: Mark Lowe [mailto:[EMAIL PROTECTED] Sent: 19 March 2004 11:41 To: Struts Users Mailing List Subject: Re: Database backed forms How would you suggest implementing view/edit

RE: Database backed forms

2004-03-19 Thread Brendan Richards
on that populates the Action form and displays. Then to save, have a 'submitEdit' action. Sounds like a much better way of going about it... Thanks. -Original Message- From: Mark Lowe [mailto:[EMAIL PROTECTED] Sent: 19 March 2004 11:41 To: Struts Users Mailing List Subject: R

Re: Database backed forms

2004-03-19 Thread Mark Lowe
xtisting object or creating a new one) 2) I've extended DynaValidatorActionForm to provide a reset() implementation. If required, the actionForm's properties are populated from the backend model. -Original Message- From: Mark Lowe [mailto:[EMAIL PROTECTED] Sent: 19 March 2004 10:41 To: Struts

RE: Database backed forms

2004-03-19 Thread Brendan Richards
mentation. If required, the actionForm's properties are populated from the backend model. -Original Message- From: Mark Lowe [mailto:[EMAIL PROTECTED] Sent: 19 March 2004 10:41 To: Struts Users Mailing List Subject: Re: Database backed forms If there's talk of having action for

Re: Database backed forms

2004-03-19 Thread Mark Lowe
If there's talk of having action forms populated by themselves then I wouldn't. For example you want to create a new record, to instantiate a new form bean you'd perhaps have to save a record to the db, and all this before the user decides what s/he wants to do with it. niall wrote some cla

RE: Database backed forms

2004-03-19 Thread Brendan Richards
I guess your first place to look would be DynaActionForm - this base class dynamically creates FormAction objects setting the properties from the struts-config file. http://jakarta.apache.org/struts/api/org/apache/struts/action/DynaAction Form.html DynaValidatorActionForm adds validator support t

Re: Database backed forms

2004-03-18 Thread Nick Heudecker
I'm not sure if this would work, as dynamic forms have their configurations frozen when the application starts up. You would have to simply write your own version of the dynamic form class, overriding any behavior that you wish to change. I don't think this would be too hard to do. On 2004-Ma