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 BeanUtils.copyProperties but they copy all > properties, whether they are null or not. Is there a way to tweak the > copying, so that only non-null values are overwritten?
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/ -- Wendy Smoak --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]