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 bean itself, so as Laurie said you would have to know in advance which properties to expose. Never mind, then. :)

You should probably ask on commons-user... I bet there's a simple way to do this. (The next thing that comes to mind is subclassing BeanUtilsBean and overriding the copyProperty method to make it ignore properties for which the incoming value is null. Would that work?)

For what it's worth, I think I just realized I need to solve the same problem, so I'll try and remember to post here if I come up with a nice solution. If you get anything from commons-user drop me a note ;-)

L.
--
Laurie, Open Source advocate, Java geek and novice blogger:
http://www.holoweb.net/laurie


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to