My next post solves this problem, Rick. It goes as deep as it needs to and can keep track of the depth too. I am fairly sure my next post (before this one) solves your problem. You don't have to use BeanUtils at all. The problem is not a BeanUtils problem but a problem of recursion. Yes?

Michael

Rick Reumann wrote:

Michael McGrady wrote the following on 9/16/2004 12:57 AM:

Would classic recursion help, Rick?


I don't think that will help since this would have to be done inside the reset method and at that point BeanUtils is going to use an isntance of FooBar but here is no way for it know at that point how deep to recurse. I think I'll have to see if I can use the lazyList inside of the business object. That 'should' do it (I think:)


public void do(FooBar outsideFooBar) { FooBar insideFooBar. Object blah = outsideFooBar.getBlah(); Object blahBlah = outsideFooBar.getBlahBlah(); // Wrap blah and blahBlah. if((insideFooBar = outsideFooBar.getFooBar()) != null) { do(insideFooBar); } else { // Wrap it up } }





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



Reply via email to