>
>  void onValidateForm() {
>>        try {
>>            Logger.getLogger(this.getClass()).debug("**onValidateForm");
>>            this.version = versionService.updateObjectCfg(objectDetail);
>>        } catch (Exception e) {
>>            // Display the cause. In a real system we would try harder to
>> get a user-friendly message.
>>            form.recordError(e.getMessage());
>>        }
>> }
>>
>
> Form submissions through AJAX only work if your onValidateForm() return the
> zone's body when some validation error is found. Use this code as example:
>
> if (form.getHasErrors() && request.isXHR()) {
>        return zonaFormulario.getBody();
> }
> else {
>        return null;
> }
>

this doesn't matter as I dont care about errors right now. and I dont need
to persist my object as all information are in the form. so on submit I will
have them back.


> You'll need to @Inject the Request.
>

why you think I should inject that!??


but that doesnt explain why form sends empty values if I use ajax refresh
from the link and works fine if I refresh whole page!!!
I have small example that can be ran to reproduce the problem if someone is
interested!

Reply via email to