Re: how to refresh page zone inside a component

2012-09-12 Thread Lance Java
NB. RenderQueue.push() adds commands to the front of the queue so you may need to iterate in reverse to get the desired output. -- View this message in context: http://tapestry.1045711.n5.nabble.com/how-to-refresh-page-zone-inside-a-component-tp5716201p5716232.html Sent from the Tapestry - User

Re: how to refresh page zone inside a component

2012-09-12 Thread leandroaispuru
Thank you Lance. I will try your solution as soon as possible. Then i will write to you again telling about the results obtained. 2012/9/11 Lance Java > Lets assume you are writing a LinkTree component which accepts a > LinkTreeModel parameter. LinkTreeModel has a visitAll method which takes a

Re: how to refresh page zone inside a component

2012-09-11 Thread Lance Java
Lets assume you are writing a LinkTree component which accepts a LinkTreeModel parameter. LinkTreeModel has a visitAll method which takes a LinkNodeVisitor. You could do something like this (not tested) LinkTree.tml --- ${linkLabel} LinkTree.java - public class LinkTree

Re: how to refresh page zone inside a component

2012-09-11 Thread leandroaispuru
Sorry, but i do not understand how the RenderCommand can help me creating eventLinks that generates ajax requests to update a zone. Can you give me an example or more info? Thank you again, Leandro 2012/9/11 Lance Java > You don't need to use the markup writer to generate recursive content. Y

Re: how to refresh page zone inside a component

2012-09-11 Thread Lance Java
You don't need to use the markup writer to generate recursive content. You can return a RenderCommand from any render phase method. Note also that injected Blocks (or Block parameters) can be type coerced to a RenderCommand. -- View this message in context: http://tapestry.1045711.n5.nabble.

Re: how to refresh page zone inside a component

2012-09-11 Thread leandroaispuru
The line System.out.println("*ES AJAX: "+request.isXHR()); is always printing false. Because the event link rendered with markupWriter does not add the "Tapestry.init linkzone" to javascript code. 2012/9/11 > Hi! > > I am facing some problems with an own component. This component renders