Re: Tree leaf not selectable

2012-04-21 Thread Geoff Callender
I didn't realise you can click on the label! That works fine. The javascript error occurs when you click on the leaf's icon. On 21/04/2012, at 12:10 AM, Lance Java wrote: > Are you sure that you are returning consistent values for hasChildren() and > getChildren(). It sounds like you might be re

Re: Tree leaf not selectable

2012-04-20 Thread Lance Java
Are you sure that you are returning consistent values for hasChildren() and getChildren(). It sounds like you might be returning true for hasChildren() but getChildren() is returning an empty list.

Re: Tree leaf not selectable

2012-04-20 Thread Geoff Callender
apestry.1045711.n5.nabble.com/Tree-leaf-not-selectable-tp5651521p5652216.html > Sent from the Tapestry - User mailing list archive at Nabble.com. > > - > To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org > For a

Re: Tree leaf not selectable

2012-04-19 Thread George Christman
I essentially had to do the same thing Lance suggested. This bug exist in the Tapestry-Jquery implementation too. -- View this message in context: http://tapestry.1045711.n5.nabble.com/Tree-leaf-not-selectable-tp5651521p5652216.html Sent from the Tapestry - User mailing list archive at

Re: Tree leaf not selectable

2012-04-19 Thread Lance Java
Hi Geoff, from what I've seen, the tree nodes don't do anything when selected. You can set the "label" parameter if you'd like to do something special. ${myTree.node.label}

Tree leaf not selectable

2012-04-19 Thread Geoff Callender
I can't make a tree leaf selectable. When I click on a leaf there's a _javascript_ error in tree.js:function doAnimate(element) {var sublist = $(element).up('li').down("ul");var dim = sublist.getDimensions();tree.js:52TypeError: 'undefined' is not an object (evaluating 'sublist.