Actually, I just thought of something else. If you use Struts 2's Preparable interface, you should be able to fetch the object from the database before you apply the request parameters. This should solve your problem.
Matt a On 5/23/07, Matt Raible <[EMAIL PROTECTED]> wrote:
If you want to edit a single object on multiple pages, you'll need to figure out where to store that information. I'm sure Struts 2 has a way of storing the Action state in the session, but I'm not sure how to do this. You could store the state in hidden fields on your page, but it might be better off using the Spring Web Flow plugin for Struts 2. http://cwiki.apache.org/S2PLUGINS/spring-webflow-plugin.html Matt On 5/23/07, yogeshk <[EMAIL PROTECTED]> wrote: > > Ohh...I'm using Struts/Hibernate/Spring. > > Thanks > > > mraible wrote: > > > > What web framework are you using? > > > > On 5/23/07, yogeshk <[EMAIL PROTECTED]> wrote: > >> > >> In my application I'm using save method at model level. > >> > >> I'm designing workflow page where one table record is splitted into 4 > >> pages. > >> Every page has it's own set of fields. Now, what happens if I go to > >> second > >> step and save the record it blanks out fields on first page. > >> > >> Easy solution would be have all fields on every page and hide unwanted > >> ones. > >> However, I believe it is not correct design and there should be a way to > >> avoid overwriting unchanged fields. > >> > >> Anybody faced this problem? > >> > >> thanks > >> -- > >> View this message in context: > >> http://www.nabble.com/Problem-with-Appfuse-2.x%3A-Database-fields-are-overwritten-tf3805605s2369.html#a10769476 > >> Sent from the AppFuse - User mailing list archive at Nabble.com. > >> > >> --------------------------------------------------------------------- > >> To unsubscribe, e-mail: [EMAIL PROTECTED] > >> For additional commands, e-mail: [EMAIL PROTECTED] > >> > >> > > > > > > -- > > http://raibledesigns.com > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > > -- > View this message in context: http://www.nabble.com/Problem-with-Appfuse-2.x%3A-Database-fields-are-overwritten-tf3805605s2369.html#a10770977 > Sent from the AppFuse - User mailing list archive at Nabble.com. > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > -- http://raibledesigns.com
-- http://raibledesigns.com --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
