I dont think onSuccess is called if validation fails, perhaps one could
adjust the outcome of the validation phase of the form like suggested.


On Mon, Apr 14, 2014 at 2:19 PM, Thiago H de Paula Figueiredo <
thiag...@gmail.com> wrote:

> 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
>         }
> }
>
> --
> Thiago H. de Paula Figueiredo
> Tapestry, Java and Hibernate consultant and developer
> http://machina.com.br
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
> For additional commands, e-mail: users-h...@tapestry.apache.org
>
>

Reply via email to