Hi All,

  I have WOTextField,AjaxSubmitButton in a AjaxUpdateContainer  which all
are  place in a WOForm. When i click on a SaveButton, even client side
validation shows errors, the
action( method which is given for action binding of AjaxSubmitbutton)  will
be executed.

  How can i make to stop the execution of action method for AjaxSubmitButton
if client side valdiation will be shows errors.

    Even i have tried with simple onClick function using SaveButton1 which
will just return false for onClick, in this case also same will be happened.


<WEBOBJECT NAME=Form1>
      <WEBOBJECT NAME=TestUpdateContainer>
           <WEBOBJECT NAME=TextField1></WEBOBJECT>
           <WEBOBJECT NAME=SaveButton></WEBOBJECT>
           <WEBOBJECT NAME=SaveButton1></WEBOBJECT>
    </WEBOBJECT>
</WEBOBJECT>

*Bindings are:*

Form1: WOForm {
    multipleSubmit = true;
    name = "TicklerDisplayForm";
}

TestUpdateContainer: AjaxUpdateContainer {
    id = "TestUpdateContainer";
    evalScripts = true;
}
TextField1: WOTextField {
    value = testScrip;
    id = "TestScrip";
}

 SaveButton: AjaxSubmitButton {
    value = "SaveButton";
    class = "ok";
    onClick = "javascript:return testScripValidation();";
    action = saveTestScrip;
    evalScripts = true;
}

SaveButton1: AjaxSubmitButton {
    value = "SaveButton1";
    class = "ok";
    onClick = "return false;";
    action = saveTestScrip;
    evalScripts = true;
    updateContainerID = "TestUpdateContainer";
}


Can anyone help me with this?

Thanks in advance,
Venu.
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      ([email protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to