Hi,

I'm trying to upgrade from 1.4.8 to 1.4.18 and I'm finding that
AjaxSubmitLink is not working  (at least with one form).

The form doesn't get submitted - the problem in wicket-ajax.js is (~line 1120):

// Submits a form using ajax.
        // This method serializes a form and sends it as POST body.
        submitForm: function(form, submitButton) {
                var submittingAttribute = 'data-wicket-submitting';
                if (form.onsubmit && !form.getAttribute(submittingAttribute)) {
                        form.setAttribute(submittingAttribute, 
submittingAttribute);
                        var retValue = form.onsubmit();
                        form.removeAttribute(submittingAttribute);
                        if (!retValue) return;
                }


The problem is var retValue = form.onsubmit(); does not return any
value (retValue remains undefined) and hence it returns and doesn't do
the submit. I don't know enough about javascript to really understand
whats happening here. The form is fairly unremarkable.

For now I've patch the wicket-ajax.js code and comment out the return,
and it works fine again. I notice this code here was not in 1.4.8. But
obviously this is not the solution.

So I imagine it something to do with the form, but I don't know where
to start and look - what is normally returned by form.onsubmit();?
what can I look for?

many thanks

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to