RE: Merging form properties

2005-08-16 Thread Cadariu, Mihai
s. M> -Original Message- From: news [mailto:[EMAIL PROTECTED] On Behalf Of Laurie Harper Sent: 29 July 2005 03:59 To: user@struts.apache.org Subject: Re: Merging form properties Wendy Smoak wrote: > From: "Dave Newton" <[EMAIL PROTECTED]> > >> if in the getProper

Re: Merging form properties

2005-07-28 Thread Laurie Harper
Wendy Smoak wrote: From: "Dave Newton" <[EMAIL PROTECTED]> if in the getPropertyDescriptors method you checked the values for null and only returned those that weren't null would this work? That's what I was thinking... but looking at the BeanInfo interface, you don't have access to the be

Re: Merging form properties

2005-07-28 Thread Wendy Smoak
From: "Dave Newton" <[EMAIL PROTECTED]> if in the getPropertyDescriptors method you checked the values for null and only returned those that weren't null would this work? That's what I was thinking... but looking at the BeanInfo interface, you don't have access to the bean itself, so as Lauri

Re: Merging form properties

2005-07-28 Thread Dave Newton
Laurie Harper wrote: Wendy Smoak wrote: I haven't done it, but you can use a BeanInfo class to control what properties are exposed: http://java.sun.com/docs/books/tutorial/javabeans/beaninfo/ That wont work, though, if you don't know at design time which properties you need to copy and w

Re: Merging form properties

2005-07-28 Thread Laurie Harper
Wendy Smoak wrote: From: "Cadariu, Mihai" <[EMAIL PROTECTED]> I have two instances of the same form bean class, both containing some properties filled, the rest being null. I would like to copy the non-null properties from one form bean to the other. I tried using the PropertyUtils.copyPropertie

Re: Merging form properties

2005-07-28 Thread Wendy Smoak
From: "Cadariu, Mihai" <[EMAIL PROTECTED]> > I have two instances of the same form bean class, both containing some > properties filled, the rest being null. I would like to copy the non-null > properties from one form bean to the other. I tried using the > PropertyUtils.copyProperties or BeanUtil

Merging form properties

2005-07-28 Thread Cadariu, Mihai
Hi, Is there a way to merge properties of two formbeans? I have two instances of the same form bean class, both containing some properties filled, the rest being null. I would like to copy the non-null properties from one form bean to the other. I tried using the PropertyUtils.copyProperties or B