And are you sure that the test method gets called, thus that your if
condition:

> if(formObjWid.getSubmitWidget().equals(formObjWid.widName))
>       test();

evaluates to true?

On Wed, 2004-07-21 at 13:13, [EMAIL PROTECTED] wrote:
> Sorry, that was a typo.
> I do call the method test with  formWidObj.
> 
> In the foll method call formWidObj.widName.onActivate =
> test(formWidObj);
> The method test would be like so: -
> 
> test(formWidObj) {
>       return function() {
>               formWidObj.widName.setValidationError("Error")'
>               return false;
>       }
>  }
> 
> In the foll method call
> 
> test(formWidObj) {
>       formWidObj.widName.setValidationError("Error")'
>       return false;
>  }
> 
> P.S: - I would be setting the validation error for a field widget.
> 
> >
> > I want to set a Validation Error for a form widget. I am able to do it
> > when I use formWidObj.widName.onActivate = test(formWidObj);
> >
> >
> > But when I use the following I am unsuccessful in setting the
> validation
> > error.
> >
> > if(formObjWid.getSubmitWidget().equals(formObjWid.widName))
> >     test();
> >
> > Where test() is
> > test(formWidObj) {
> >     return function() {
> >             formWidObj.widName.setValidationError("Error")'
> >             return false;
> >     }
> > }
> > widName is a 'submit' widget.
> >
> > Is it that validation errors can be set only when we use onActivate.
> > Or is it that I am trying to set validation error in a wrong way when
> I
> > use getSubmitWidget()?
> 
> The method test expects a parameter formWidObj but you call it without a
> parameter.
> 
> 
> --
> Bruno Dumon                             http://outerthought.org/
> Outerthought - Open Source, Java & XML Competence Support Center
> [EMAIL PROTECTED]                          [EMAIL PROTECTED]
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 
> 
> 
> Confidentiality Notice
> 
> The information contained in this electronic message and any attachments to this 
> message are intended
> for the exclusive use of the addressee(s) and may contain confidential or privileged 
> information. If
> you are not the intended recipient, please notify the sender at Wipro or [EMAIL 
> PROTECTED] immediately
> and destroy all copies of this message and any attachments.
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
-- 
Bruno Dumon                             http://outerthought.org/
Outerthought - Open Source, Java & XML Competence Support Center
[EMAIL PROTECTED]                          [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to