Back Forum Reply New

Editing quot;Richquot; objects on client and binding on the server

Here's what I want to do:

In general, I'd like to give end-users the ability to manipulate a quot;richquot; (e.g. sub-objects, collections, and fields) on the client browser (using Javascript to facilitate). When the user is ready to commit the rich object, I will recurse through the object and set HTML form values (
HTML Code:
lt;input type=quot;hiddenquot; name=quot;xxxquot; value=quot;yyyquot;/gt;
).

Now I have to bind these values to an object on the server side. This is where I'm running into trouble. I'm using LazyList (Commons Collections) (I could also use AutopopulatingList) to handle dynamic list growing. This is all fine and good, but I also have to populate sub-objects for the binding to work. E.g. if a ObjectA has a ObjectB and ObjectB has an id that I'd like top populate, when I instantiate ObjectA, I also have to instantiate ObjectB. I understand why I have to do this, but in this case, it would be great if the BeanWrapper (I think) would automatically instantiate an object for me if it's get method returns null. I have not tried this yet because I'm not convinced that this is the best way to go.

Any ideas?

Thanks,

Ian
¥
Back Forum Reply New