Re: inheritance...

2008-05-04 Thread venkat reddy
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:

Re: inheritance...

2008-04-28 Thread balaji.m.cs
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 { >

Re: inheritance...

2008-04-27 Thread Antonio Petrelli
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

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

Re: Inheritance of DynaActionForms

2004-12-23 Thread Radu Badita
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

Re: Inheritance of DynaActionForms

2004-12-22 Thread Eddie Bush
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

RE: inheritance in tiles

2004-10-06 Thread wiwit_tjahjana
> 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 -

RE: inheritance in tiles

2004-10-06 Thread Fogleson, Allen
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

RE: inheritance in tiles

2004-10-06 Thread Jirole, Amar
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

Re: inheritance in tiles

2004-10-06 Thread Vic Cekvenich
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