RE: Inheritance within form beans

2007-10-03 Thread Kothari, Kailash
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

Re: Inheritance within form beans

2007-10-03 Thread Rick Reumann
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

RE: Inheritance within form beans

2007-10-03 Thread Kothari, Kailash
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 &

Re: Inheritance within form beans

2007-10-03 Thread Rick Reumann
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

RE: Inheritance within form beans

2007-10-03 Thread Kothari, Kailash
[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. >

Re: Inheritance within form beans

2007-10-03 Thread Rick Reumann
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

RE: Inheritance within form beans

2007-10-02 Thread Dave Newton
--- "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

RE: Inheritance within form beans

2007-10-02 Thread Kothari, Kailash
)(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

Re: Inheritance within form beans

2007-10-01 Thread Rick Reumann
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