submitButton.addClickListener(new ClickListener() {

                @Override
                public void onClick(Widget sender) {
                        form.submit();
                }

        });

     form.addFormHandler(new FormHandler() {
                public void onSubmit(FormSubmitEvent event) {

                         validateForm();
                }

                public void onSubmitComplete(FormSubmitCompleteEvent
event) {

                }
        });

            public native void validateForm() /*-{
        $wnd.$("#form").validate({
                        success: function(label)
                                { // set   as text for IE
                                        label.attr("class","checked");
                                        alert(label.attr("class"));

                                },
                        submitHandler:function(form) {


                        }
        });
}-*/;

in html file i included

< script type="text/javascript" src="js/jquery-1.3.2.js"> < script
type="text/javascript" src="js/jquery.validate.js">

but when i submit a form , form does not not validate

please tell me the soluti

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to