Re: [Wicket-user] Adding nodes to ajax TreeTable.

2006-10-22 Thread Matej Knopp
Yeah. If you just insert the node to a parent node, the listener event 
is not fired. You have to use the DefaultTreeModel's methods to change 
tree structure if you want the events to be fired and tree to be updated.

-Matej

Sean C. Sullivan wrote:
 Ed, 
 
 Instead of adding the new TreeNode to the TreeNode that the user clicked
 on, you should insert the new TreeNode into your DefaultTreeModel object.
 
 DefaultTreeMethod provides this method:
 
 public void insertNodeInto(MutableTreeNode newChild,
MutableTreeNode parent,
int index)
 
 Regards,
 
 Sean
 
 
 
 
 Date: Fri, 20 Oct 2006 12:23:08 -0700
 From: Johnson, Ed A [EMAIL PROTECTED]
 Subject: [Wicket-user] Adding nodes to ajax TreeTable.


 I have a TreeTable that I want to add nodes to when it is clicked.  I am
 able to catch the event and add the node, but the webpage doesn't show
 the new nodes.  It does change the node on the page to show an icon that
 indicates there are children nodes, but it won't expand.  Is there
 something more I need to do than I have done below?  I can output my
 tree on the server and see that the new node is added.

 Thanks,

 Ed

 protected void onNodeLinkClicked(wicket.ajax.AjaxRequestTarget target,
   javax.swing.tree.TreeNode node)
 {
  DefaultMutableTreeNode mutableNode = (DefaultMutableTreeNode)
 node;
  mutableNode.add(new DefaultMutableTreeNode(new
 StingBusinessProcessTreeable(new Item)));
  getTree().updateTree(target);
 }




 -
 Using Tomcat but need to do more? Need to support web services, security?
 Get stuff done quickly with pre-integrated technology to make your job
 easier
 Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
 http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user
 
 
 
 -
 Using Tomcat but need to do more? Need to support web services, security?
 Get stuff done quickly with pre-integrated technology to make your job easier
 Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
 http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user
 


-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] Adding nodes to ajax TreeTable.

2006-10-20 Thread Johnson, Ed A
Title: Adding nodes to ajax TreeTable.






I have a TreeTable that I want to add nodes to when it is clicked. I am able to catch the event and add the node, but the webpage doesn't show the new nodes. It does change the node on the page to show an icon that indicates there are children nodes, but it won't expand. Is there something more I need to do than I have done below? I can output my tree on the server and see that the new node is added.

Thanks,


Ed


protected void onNodeLinkClicked(wicket.ajax.AjaxRequestTarget target,

 javax.swing.tree.TreeNode node) {

 DefaultMutableTreeNode mutableNode = (DefaultMutableTreeNode) node;

 mutableNode.add(new DefaultMutableTreeNode(new StingBusinessProcessTreeable(new Item)));

 getTree().updateTree(target);

}






-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Adding nodes to ajax TreeTable.

2006-10-20 Thread Sean C. Sullivan

Ed, 

Instead of adding the new TreeNode to the TreeNode that the user clicked
on, you should insert the new TreeNode into your DefaultTreeModel object.

DefaultTreeMethod provides this method:

public void insertNodeInto(MutableTreeNode newChild,
   MutableTreeNode parent,
   int index)

Regards,

Sean




Date: Fri, 20 Oct 2006 12:23:08 -0700
From: Johnson, Ed A [EMAIL PROTECTED]
Subject: [Wicket-user] Adding nodes to ajax TreeTable.


I have a TreeTable that I want to add nodes to when it is clicked.  I am
able to catch the event and add the node, but the webpage doesn't show
the new nodes.  It does change the node on the page to show an icon that
indicates there are children nodes, but it won't expand.  Is there
something more I need to do than I have done below?  I can output my
tree on the server and see that the new node is added.

Thanks,

Ed

protected void onNodeLinkClicked(wicket.ajax.AjaxRequestTarget target,
javax.swing.tree.TreeNode node)
{
   DefaultMutableTreeNode mutableNode = (DefaultMutableTreeNode)
node;
   mutableNode.add(new DefaultMutableTreeNode(new
StingBusinessProcessTreeable(new Item)));
   getTree().updateTree(target);
}




-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job
easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user



-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user