This feels like it is a stupid question but then sometimes they need to be asked.
I have a POJO with various fields and a few collections. I would like to edit some of the fields in a form. I have created an ActionBean with the object embeded and exposed through a get/set, loaded an instance of the object, ForwardResolution'ed to the JSP and then used object.field in the form with a POST back to the ActionBean - so far so good. What I understod from the documentation was that Stripes would update the existing object (i.e. the one that was loaded in the ActionBean) with the values in the form but what it is actually doing is instanciating a new object and populating that from the form. This basically means that I either have to have every field as an editable or hidden field on the form or load another copy of the pre-existing object and 'merge' the changes in - which as far as I can tell is what the Bugzooky app does. I guess my question is, can I change the behaviour so I dont have to do either of those things and get stripes to simply update an existing object rather than create a new one? Or should I stop complaining and get on with it? ;) TIA and appologies for what is probably a very basic and stupid question. Ben PS In case it makes a difference, I am using JDK 1.6.0.11 / Stripes 1.5 / Hibernate 3.3.1 / Tomcat 6 ------------------------------------------------------------------------------ Create and Deploy Rich Internet Apps outside the browser with Adobe(R)AIR(TM) software. With Adobe AIR, Ajax developers can use existing skills and code to build responsive, highly engaging applications that combine the power of local resources and data with the reach of the web. Download the Adobe AIR SDK and Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-com _______________________________________________ Stripes-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/stripes-users
