Tree accepts a "label" parameter which can be a block. <t:tree model="myModel"> <p:label> <t:if test="node.leaf"> <t:actionlink action="doSomething" context="node.id">${node.label}</t:actionlink>
<p:else> ${node.label} </p:else> </t:if> </p:label> </t:tree> This will require a getter() in your page to get the currently rendering TreeNode (ie the "node" property from the Tree component) and at this stage I'm not entirely sure how you'd do this... anyone? On Monday, 20 February 2012, George Christman <gchrist...@cardaddy.com> wrote: > I've tried the following, all without success. > > @OnEvent(value = EventConstants.NODE_SELECTED) > Link nodeSelected(Integer nodeId) { > company.setCompany((Company) session.get(Company.class, nodeId)); > > Link link = pageRenderLinkSource.createPageRenderLink(Index.class); > return link; > } > > @OnEvent(value = EventConstants.NODE_SELECTED) > Class<?> nodeSelected(Integer nodeId) { > company.setCompany((Company) session.get(Company.class, nodeId)); > > return Index.class; > } > > @OnEvent(value = EventConstants.NODE_SELECTED) > Object nodeSelected(Integer nodeId) { > company.setCompany((Company) session.get(Company.class, nodeId)); > > return treeZone.body; > } > > Does anybody have any suggestions on how to get the tree grid to change the > content? > > -- > View this message in context: http://tapestry.1045711.n5.nabble.com/TreeGrid-ActionLink-tp5497839p5497889.html > Sent from the Tapestry - User mailing list archive at Nabble.com. > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org > For additional commands, e-mail: users-h...@tapestry.apache.org > >