Rizwan Merchant wrote:
and in ExtendedDynaValidatorForm I would have a reset() method as follows
public void reset(ActionMapping mapping, HttpServletRequest request){
super.reset();
//not sure what goes here
}
So my next question is..how to I reset all the booleans in the form? Do
I have to explicitly reset each of them, or is there a generic way to
iterate through all of them and reset them? If possible, can I see some
sample code please?
The code above is correct. I just manually set them to false..
public void reset(ActionMapping mapping, HttpServletRequest request){
myBoolProperty = false;
myOtherBoolProperty = false;
super.reset();
}
I suppose if you had a ton of boolean properties you could do some sort
of reflection to look for booleans and set them to false, but I haven't
bothered with that.
Also remember, you only need to do this if your ActionForm has session
scope.
--
Rick
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]