RE: Tree onClick() question...

2012-03-09 Thread Wilhelmsen Tor Iver
My question is why is target always null in the onClick handler? Typically that happens for AjaxFallback* components when the click is not an Ajax request, e.g. the user has disabled Javascript. In those cases target is null and the whole page will be rendered in the (normal) response. - Tor

Re: Tree onClick() question...

2012-03-09 Thread Sven Meier
Check the tree's link type, if it is REGULAR the target will always be null. Sven On 03/09/2012 12:14 AM, mlabs wrote: I'm using a Tree and I have declared an onClick() handler in the usual way : new Tree(treeID, treeModel){ @Override protected MarkupContainer newNodeLink(MarkupContainer