Re: Rolling back form changes

2006-10-31 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Dave, Dave Newton wrote: For a DynaValidatorBean, no such methods exist. http://jakarta.apache.org/commons/beanutils/commons-beanutils-1.6.1/docs/api/ 'If the origin bean is actually a Map, it is assumed to contain String-valued simple

Re: Rolling back form changes

2006-10-31 Thread Niall Pemberton
On 10/31/06, Christopher Schultz [EMAIL PROTECTED] wrote: Again, the problem was creating the target bean, not copying the properties. Thanks, though. How about posting the stack trace / line number that its throwing the NPE on? Also what Struts version are you using? Niall - -chris

RE: Rolling back form changes

2006-10-31 Thread Dave Newton
From: Christopher Schultz [mailto:[EMAIL PROTECTED] Really? BeanUtils.copyProperties seems to indicate that it copies bean properties which are usually defined as strings for which the methods getFoo and setFoo exist. For a DynaValidatorBean, no such methods exist.

Rolling back form changes

2006-10-30 Thread Christopher Schultz
All, I have a multi-page flow and I am using a DynaValidatorForm to store all my form info. At the end of the flow, there's a confirmation page where the user can check out all of the information entered during the previous several pages. They have the opportunity to go back to each page (via a

RE: Rolling back form changes

2006-10-30 Thread Dave Newton
From: Christopher Schultz [mailto:[EMAIL PROTECTED] Is there a way to get the name of the currently active form? Is that what ActionMapping's getName() does? Dave - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional

Re: Rolling back form changes

2006-10-30 Thread Chris Pratt
You might have a look at the html:cancel button. (*Chris*) On 10/30/06, Christopher Schultz [EMAIL PROTECTED] wrote: All, I have a multi-page flow and I am using a DynaValidatorForm to store all my form info. At the end of the flow, there's a confirmation page where the user can check out

RE: Rolling back form changes

2006-10-30 Thread Bruno Melloni
to perform a similar function. Bruno -Original Message- From: Christopher Schultz [mailto:[EMAIL PROTECTED] Sent: Monday, October 30, 2006 11:38 AM To: Struts Users Mailing List Subject: Rolling back form changes All, I have a multi-page flow and I am using a DynaValidatorForm to store all

Re: Rolling back form changes

2006-10-30 Thread Martin Gainty
Message - From: Dave Newton [EMAIL PROTECTED] To: Struts Users Mailing List user@struts.apache.org Sent: Monday, October 30, 2006 12:47 PM Subject: RE: Rolling back form changes From: Christopher Schultz [mailto:[EMAIL PROTECTED] Is there a way to get the name of the currently active form

Re: Rolling back form changes

2006-10-30 Thread Christopher Schultz
Dave, From: Christopher Schultz [mailto:[EMAIL PROTECTED] Is there a way to get the name of the currently active form? Is that what ActionMapping's getName() does? Duh! Thanks. I'm a moron. Now I just need to figure out how to copy one of these things. It looks like getMap might be my best

Re: Rolling back form changes

2006-10-30 Thread Christopher Schultz
All, Now I just need to figure out how to copy one of these things. It looks like getMap might be my best option. Any reason why this might be a bad idea? 'cause this class is not clonable, and it doesn't have a copy constructor, so this looks like the only possibility. To answer my own

RE: Rolling back form changes

2006-10-30 Thread Strachan, Paul
); BeanUtils.copyProperties(dyForm, obj); // restore your form properties -Original Message- From: Christopher Schultz [mailto:[EMAIL PROTECTED] Sent: Tuesday, 31 October 2006 11:33 AM To: Struts Users Mailing List Subject: Re: Rolling back form changes All, Now I just need to figure

Re: Rolling back form changes

2006-10-30 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Paul, To clone a DynaValidatorForm perhaps something like this will work: LazyDynaBean obj = new LazyDynaBean();// create a lazy dyna bean BeanUtils.copyProperties(obj, dyForm);// save your form properties