http://tawus.wordpress.com/2011/04/16/tapestry-magic-2-ajax-with-graceful-degradation/

On Fri, Jul 8, 2011 at 16:16, Thiago H. de Paula Figueiredo
<thiag...@gmail.com> wrote:
> 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
>
>



-- 
Andreas Andreou - andy...@apache.org - http://blog.andyhot.gr
Apache Tapestry PMC / http://chesstu.be owner
Open Source / JEE Consulting

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

Reply via email to