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 parent, String id,
final TreeNode){
      return newLink(parent, id, new ILinkCallback(){
          public void onClick(AjaxRequestLink target){

                 // why is target always null in here?
          }
      });
}

My question is why is target always null in the onClick handler?
My problem is that I want to alter the model of another component when the
user clicks a tree node, and then refresh that component in the page... so
I'm thinking I need to make a target.addComponent(..) call at the end of
this... but, well, I don't appear to have a target?
What am I missing?
TIA


--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Tree-onClick-question-tp4457980p4457980.html
Sent from the Users forum mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to