Awesome Lance, I was a little concerned at first lol.

On Mon, Feb 20, 2012 at 3:36 AM, Lance Java [via Tapestry] <
ml-node+s1045711n5498481...@n5.nabble.com> wrote:

> 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 <[hidden 
> email]<http://user/SendEmail.jtp?type=node&node=5498481&i=0>>
>
> 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: [hidden 
> > email]<http://user/SendEmail.jtp?type=node&node=5498481&i=1>
> > For additional commands, e-mail: [hidden 
> > email]<http://user/SendEmail.jtp?type=node&node=5498481&i=2>
> >
> >
>
>
> ------------------------------
>  If you reply to this email, your message will be added to the discussion
> below:
>
> http://tapestry.1045711.n5.nabble.com/TreeGrid-ActionLink-tp5497839p5498481.html
>  To unsubscribe from TreeGrid ActionLink, click 
> here<http://tapestry.1045711.n5.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=5497839&code=Z2NocmlzdG1hbkBjYXJkYWRkeS5jb218NTQ5NzgzOXwxNjMyOTYxMjA3>
> .
> NAML<http://tapestry.1045711.n5.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>
>



-- 
George Christman
www.CarDaddy.com
P.O. Box 735
Johnstown, New York


--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/TreeGrid-ActionLink-tp5497839p5499507.html
Sent from the Tapestry - User mailing list archive at Nabble.com.

Reply via email to