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
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
> 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
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
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
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
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
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
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
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
10 matches
Mail list logo