I think Thiago means onSubmit()

(If there are errors, it will never reach on success, right?)

This also means that client side validation must be disabled, or then a bit of JS must be used to disable it for the hidden button. (Js interface also exists to submit the form iirc, but for these bits someone else knows better than me probably.)

Ville

14.4.2014 15:19, Thiago H de Paula Figueiredo kirjoitti:
On Mon, 14 Apr 2014 07:36:27 -0300, Ilya Obshadko <ilya.obsha...@gmail.com> wrote:

- if we trigger form submission (it's possible to do that using hidden
submit, it's not very elegant, but it works), we have to go through form
validation which fails in most cases because at this point form is not yet completed; user receives non-relevant validation errors

Please try this:

@Environmental
private ValidationTracker validationTracker;

public void onSuccess() {
    if (notReallyValidationNow) { // submission from autocomplete
        validationTracker.clear(); // all validation errors are dropped
    }
}



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org

Reply via email to