Re: Adding inline javascript at the end of the page body

2014-06-24 Thread Numa Schmeder
I will add a JIRA then :) Concerning the zone ajax issue: I am returning zone.getBody() Give it try, you will see that with jquery you get the same behavior. Maybe it’s by design, but I think it’s a bug of the core js stack the function ElementWrapper.update adds nested div one after the

Re: Adding inline javascript at the end of the page body

2014-06-24 Thread Geoff Callender
A while back I stopped returning Zone, or its body, preferring to use AjaxResponseRenderer#addRender instead. So I'm curious - do you see the same effect if you use AjaxResponseRenderer#addRender? On 24 Jun 2014, at 7:34 pm, Numa Schmeder n...@dfacto.ch wrote: I will add a JIRA then :)

Re: Adding inline javascript at the end of the page body

2014-06-24 Thread Thiago H de Paula Figueiredo
On Tue, 24 Jun 2014 06:34:25 -0300, Numa Schmeder n...@dfacto.ch wrote: Also the zone id shouldn’t change on subsequent request… As you have seen each nested div has a different zone id. Use Zone's id parameter and that won't happen. -- Thiago H. de Paula Figueiredo Tapestry, Java and

Adding inline javascript at the end of the page body

2014-06-23 Thread Numa Schmeder
Hello, I am using Tapestry 5.4 beta 6. I am trying to add a script block at the very end of the page body, after tapestry has written all its javascript. I know there are 2 ways: using javascriptSupport.addScript or javascriptSupport.require or creating one js file par page and load it via

Re: Adding inline javascript at the end of the page body

2014-06-23 Thread Thiago H de Paula Figueiredo
On Mon, 23 Jun 2014 10:53:38 -0300, Numa Schmeder n...@dfacto.ch wrote: Hello, Hi! I am using Tapestry 5.4 beta 6. I am trying to add a script block at the very end of the page body, after tapestry has written all its javascript. I know there are 2 ways: using javascriptSupport.addScript

Re: Adding inline javascript at the end of the page body

2014-06-23 Thread Numa Schmeder
Thanks for your answer! Le 23 juin 2014 à 16:17, Thiago H de Paula Figueiredo thiag...@gmail.com a écrit : On Mon, 23 Jun 2014 10:53:38 -0300, Numa Schmeder n...@dfacto.ch wrote: Hello, Hi! I am using Tapestry 5.4 beta 6. I am trying to add a script block at the very end of the page

Re: Adding inline javascript at the end of the page body

2014-06-23 Thread Thiago H de Paula Figueiredo
On Mon, 23 Jun 2014 11:53:39 -0300, Numa Schmeder n...@dfacto.ch wrote: Thanks for your answer! ;) Yes that’s what I was meaning with one js file per page, you need to use the @Import. But I have a special use case where all js is not in the context but on separate server. And the