On Wed, 04 Jun 2008 01:00:43 -0300, Jun Tsai <[EMAIL PROTECTED]> wrote:
I have the same problem.
Any T5 event handler method that is fired by AJAX must return a Block or Zone containing the new zone content, so you have to return your Zone in your validation method when validation fails. ;)
Use something like (not tested), even when you only use T5 validation: @OnEvent(component="form", value=Form.VALIDATE_FORM) public Object validate() { // validation logic if (request.isXHR() && form.getHasErrors()) { return zone; } else { return null; } } Thiago --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]