On Fri, 08 Jul 2011 09:02:18 -0300, atcach <atc...@gmail.com> wrote:

Hi,

Hi!

classpath:com/tida/servir/pages/ABMUsuario.tml, line 85]}]. Return type
org.apache.tapestry5.ajax.MultiZoneUpdate can not be handled.

Tapestry only handles AJAX-related return types (MultiZoneUpdate included) if the request has there's a X-Requested-With HTTP header with value 'XMLHttpRequest'. JavaScript frameworks usually set this header automatically in AJAX requests.

It looks like your code isn't checking whether a request is AJAX before returning an AJAX value. You can do that by @Inject'ing Request and using its isXHR() method.

--
Thiago H. de Paula Figueiredo
Independent Java, Apache Tapestry 5 and Hibernate consultant, developer, and instructor
Owner, Ars Machina Tecnologia da Informação Ltda.
http://www.arsmachina.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