Balaji,
Trying using the baseForm (or some other identifier which currently has a
BaseForm reference) as if it were a ChildForm's reference. Java's
polymorphism mechanism takes care of everything.
Post if any problem exists.
On Tue, Apr 29, 2008 at 9:18 AM, balaji.m.cs <[EMAIL PROTECTED]> wrote:
ya its not a problem but i am asking can we able to reffer a childform bean
object specified in struts config with the baseform reference.. in the time
of rendering into a jsp...?
Antonio Petrelli-3 wrote:
>
> 2008/4/27 balaji.m.cs <[EMAIL PROTECTED]>:
>> BaseFrom extends ActionForm {
>
2008/4/27 balaji.m.cs <[EMAIL PROTECTED]>:
> BaseFrom extends ActionForm {
>
> private List myList = null;
> }
>
> ChildForm extends BaseForm
ChildForm is also BaseForm, it's OOP inheritance, so I don't see the
problem here.
Antonio
riginal Message-
From: Rick Reumann [mailto:[EMAIL PROTECTED]
Sent: Wednesday, October 03, 2007 3:47 PM
To: Struts Users Mailing List
Subject: Re: Inheritance within form beans
On 10/3/07, Kothari, Kailash <[EMAIL PROTECTED]> wrote:
> Ok, that's quite interesting..
>
> I th
On 10/3/07, Kothari, Kailash <[EMAIL PROTECTED]> wrote:
> Ok, that's quite interesting..
>
> I think I just need to find a efficient way of doing the deep copy
> because my parent class has thousands of attributes in all including
> nested attributes..
Hmm "thousands" of attributes? I doubt you ar
tober 03, 2007 2:37 PM
To: Struts Users Mailing List
Subject: Re: Inheritance within form beans
On 10/3/07, Kothari, Kailash <[EMAIL PROTECTED]> wrote:
> Thanks a lot Rick. That gives me a new area to explore.
>
> The BeanUtils method - BeanUtils.copyProperties(Object target, Object
&
On 10/3/07, Kothari, Kailash <[EMAIL PROTECTED]> wrote:
> Thanks a lot Rick. That gives me a new area to explore.
>
> The BeanUtils method - BeanUtils.copyProperties(Object target, Object
> src) - does give me a shallow copy of an object, Im trying to figure out
> how to get a deep copy..
I might
[mailto:[EMAIL PROTECTED]
Sent: Wednesday, October 03, 2007 7:21 AM
To: Struts Users Mailing List
Subject: Re: Inheritance within form beans
On 10/2/07, Kothari, Kailash <[EMAIL PROTECTED]> wrote:
> Thaks Rick.
>
> This will give me an instance of the parent bean OR the child bean.
>
On 10/2/07, Kothari, Kailash <[EMAIL PROTECTED]> wrote:
> Thaks Rick.
>
> This will give me an instance of the parent bean OR the child bean.
>
> What I need is a child bean pre populated with data from the parent
> bean.
Ok, so just get ParentBean and then populate your subclassed bean...
publi
--- "Kothari, Kailash" wrote:
> This will give me an instance of the parent bean OR
> the child bean.
>
> What I need is a child bean pre populated with data
> from the parent bean.
I'd probably consider hooking in to the request
processor (or chain if you're using 1.3, I suppose)
and implement t
)(instance of parent bean));
Since java does not allow such downcasting.
Would appreciate anything to help me move along !
-Original Message-
From: Rick Reumann [mailto:[EMAIL PROTECTED]
Sent: Monday, October 01, 2007 5:57 PM
To: Struts Users Mailing List
Subject: Re: Inheritance within form
On 10/1/07, Kothari, Kailash <[EMAIL PROTECTED]> wrote:
> What I also need is that, when a child form bean is instantiated by
> Struts, I want Struts to check if there is an instance of the parent
> form bean in the session and if so, pre populate that data from the
> parent to the child form bean
Regarding the inheritance of DynaActionForms I've once read an very good
and interesting article of someone who found an workaround. I don't have
the url though, so maybe you'll get lucky with google ;-)
Hi,
I am looking for a "Best practice" of using the ActionForms. We are using
lot of Forms(b
Hi Vijay,
Comments intermixed.
On Wed, 22 Dec 2004 08:51:16 -0500, Vijay K Dasari
<[EMAIL PROTECTED]> wrote:
> Hi,
> I am looking for a "Best practice" of using the ActionForms. We are using
> lot of Forms(both ActionForm and DynaActionForms) in our application. All
> these Forms share some commo
>
10/06/2004 02:39 PM
Please respond to
"Struts Users Mailing List" <[EMAIL PROTECTED]>
To
"'Struts Users Mailing List'" <[EMAIL PROTECTED]>
cc
Subject
RE: inheritance in tiles
A stupid question :
Can we pass parameters in this extension.
TIA
-
irole, Amar [mailto:[EMAIL PROTECTED]
Sent: Wednesday, October 06, 2004 2:39 PM
To: 'Struts Users Mailing List'
Subject: RE: inheritance in tiles
A stupid question :
Can we pass parameters in this extension.
TIA
-Amar
-Original Message-
From: news [mailto:[EMAIL PROTECTED] O
A stupid question :
Can we pass parameters in this extension.
TIA
-Amar
-Original Message-
From: news [mailto:[EMAIL PROTECTED] On Behalf Of Vic Cekvenich
Sent: Wednesday, October 06, 2004 2:25 PM
To: [EMAIL PROTECTED]
Subject: Re: inheritance in tiles
yes.
josh wrote:
> Can a t
yes.
josh wrote:
Can a tile definition that extends another definition itself be extended
again?
definition
^
|
child definition
^
|
grandchild definition
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mai
18 matches
Mail list logo