Re: reset method with DyanValidatorForm

2006-11-01 Thread Niall Pemberton
Woops, sorry download link should have been: http://struts.apache.org/downloads.html On 11/1/06, Niall Pemberton <[EMAIL PROTECTED]> wrote: On 11/1/06, fea jabi <[EMAIL PROTECTED]> wrote: > Thanks. This forum has been great help to me. > > we are using 1.2.7 so, can't use this nice feature yet.

Re: reset method with DyanValidatorForm

2006-11-01 Thread Niall Pemberton
On 11/1/06, fea jabi <[EMAIL PROTECTED]> wrote: Thanks. This forum has been great help to me. we are using 1.2.7 so, can't use this nice feature yet. But where can I get the new features added after 1.2.7 version from? Its in the Struts 1.3.x series - the only "ga" (or production) quality ver

Re: reset method with DyanValidatorForm

2006-11-01 Thread fea jabi
To: "Struts Users Mailing List" Subject: Re: reset method with DyanValidatorForm Date: Wed, 1 Nov 2006 15:35:44 + On 1/6/06, Wendy Smoak <[EMAIL PROTECTED]> wrote: On 1/6/06, fea jabi <[EMAIL PROTECTED]> wrote: > So, I might have to reset the checkboxes now. > > Do,

Re: reset method with DyanValidatorForm

2006-11-01 Thread fea jabi
Great. thanks a lot for your help. From: "Wendy Smoak" <[EMAIL PROTECTED]> Reply-To: "Struts Users Mailing List" To: "Struts Users Mailing List" Subject: Re: reset method with DyanValidatorForm Date: Wed, 1 Nov 2006 08:21:41 -0700 On 11/1/06, fea jabi <

Re: reset method with DyanValidatorForm

2006-11-01 Thread Niall Pemberton
On 1/6/06, Wendy Smoak <[EMAIL PROTECTED]> wrote: On 1/6/06, fea jabi <[EMAIL PROTECTED]> wrote: > So, I might have to reset the checkboxes now. > > Do, I have no other choice but to create a formbean Class with all the > setter's and getter's and then add reset method too for it. > > or is ther

Re: reset method with DyanValidatorForm

2006-11-01 Thread Wendy Smoak
On 11/1/06, fea jabi <[EMAIL PROTECTED]> wrote: may I know the reason why do we have to use Serializable in the below. >package com.example.myapp; >public final class AccountForm extends DynaValidatorActionForm >implements Serializable {...} You don't. DynaValidatorActionForm is already Se

Re: reset() method

2006-09-03 Thread Puneet Lakhina
On 9/1/06, Sonu S <[EMAIL PROTECTED]> wrote: Hi, I am using struts in my application. i am using reset and validation. i am not writing any validation method. i am using struts' validation framework. validation is working. reset also works fine in application if i enter some values in form (te

Re: reset() method

2006-09-01 Thread nuwan chandrasoma
Hi, what is the scope the form is in? i think it must be session. what you can do is with out adding a reset button, add a normal button and call a javascript with would reset the values in the from elements explicitly. i had the same problem. this what i did. Thanks, Nuwan On 9/1/06, Sonu S <

Re: reset method with DyanValidatorForm

2006-01-06 Thread Wendy Smoak
On 1/6/06, fea jabi <[EMAIL PROTECTED]> wrote: > So, I might have to reset the checkboxes now. > > Do, I have no other choice but to create a formbean Class with all the > setter's and getter's and then add reset method too for it. > > or is there an easier way to do this using DynaValidatorForm?

Re: reset method with DyanValidatorForm

2006-01-06 Thread fea jabi
-To: "Struts Users Mailing List" To: Struts Users Mailing List Subject: Re: reset method in ActionForm Date: Tue, 3 Jan 2006 12:49:55 -0600 Q: When exactly this method has to be used and when does this get called? A: The reset method is called for each new request, for both request an

Re: reset method in ActionForm

2006-01-03 Thread Andre Van Klaveren
Q: When exactly this method has to be used and when does this get called? A: The reset method is called for each new request, for both request and session scoped ActionForms, before the ActionForm is populated from the request. Here's the sequence of events: 1. Request received by controller. 2.

Re: reset method in ActionForm

2006-01-03 Thread Ted Husted
On 1/3/06, Niall Pemberton <[EMAIL PROTECTED]> wrote: > Reset gets called just before the form is populated and the most common use > is for resetting boolean properties set using checkboxes. This is because if > the checkbox is not "checked" browsers do no submit a value, so the > "population" mec

Re: reset method in ActionForm

2006-01-03 Thread Niall Pemberton
Reset gets called just before the form is populated and the most common use is for resetting boolean properties set using checkboxes. This is because if the checkbox is not "checked" browsers do no submit a value, so the "population" mechanism doesn't set the property to "false" if the checkbox is

Re: Reset Method in ActionForm

2005-02-26 Thread Larry Meadors
IMO, no. That should be done in the action as needed. The reasoning for that is that if you want to reuse the action form for multiple actions (like with a DispatchAction), no matter what you do, you are rebuilding the lists which will lead to performance degradation. If you are using the action

Re: Reset Method in ActionForm

2005-02-25 Thread Jeff Beal
I think that the best sentence to explain when to use the reset method comes from the JavaDoc: "In practice, the only properties that need to be reset are those which represent checkboxes on a session-scoped form." Based on that, I would say that your usage is an inconsistent usage of the reset()

Re: reset method causes values not displaying

2004-10-27 Thread Jeff Beal
Implement the Cloneable interface on your ActionForm and call XXX newForm = (XXX)oldForm.clone(). Read the JavaDoc on Cloneable and the Object.clone() method for more information. -- Jeff dmu2201 wrote: Sebastian Ho wrote: Now this is a Java question, if "XXX newForm = (XXX) form" resulted in f

Re: reset method causes values not displaying

2004-10-27 Thread dmu2201
Sebastian Ho wrote: Now this is a Java question, if "XXX newForm = (XXX) form" resulted in form and newForm having the same memory space? How do I really make a duplicate copy with different memory space (beside using new, or is new the only solution)? Sebastian Ho Since this is Java and not C

Re: reset method causes values not displaying

2004-10-27 Thread Sebastian Ho
Now this is a Java question, if "XXX newForm = (XXX) form" resulted in form and newForm having the same memory space? How do I really make a duplicate copy with different memory space (beside using new, or is new the only solution)? Sebastian Ho On Wed, 2004-10-27 at 17:44, dmu2201 wrote: > Seb

Re: reset method causes values not displaying

2004-10-27 Thread dmu2201
Sebastian Ho wrote: Hi Can someone point out why this do not work, or why this work? What this does, get a Actionform, set a value in it, add the ActionForm into an Vector, set the Vector into Session. Strangely the new ActionForm is not displayed in the JSP returned by ActionForward. It only app