Pedro, thanks for your response.
I solved my problem in the following way:
For my derived DefaultMutableTreeNode class I added an Ajax link element:
public class CheckBoxSelectableTreeItem
extends DefaultMutableTreeNode
{
protected AjaxLink clickLink; // for testing the
Hi Mohammad, nice you created the test case. I just would recommend to
don't make any reference from your domains objects (TreeNode) to view
ones (AjaxLink) because they are usually packaged in different places.
Take a look at how I created a similar test:
Hi Pedro.
But how do you get the link's id i.e., moveC3ToC2?
I added all the code to the Node and Tree derive classes to so that I could
get the link id.
--
View this message in context:
http://apache-wicket.1842946.n4.nabble.com/WicketTester-and-clicking-a-tree-node-tp3556724p3569317.html
You can use the ITreeState API to manipulate the expand/collapsed node
state. Put your code inside a link or a button and call it from Wicket
tester.
On Fri, May 27, 2011 at 10:21 PM, msalman mohammad_sal...@yahoo.com wrote:
Hi,
I am trying to simulate/test clicking and expanding tree nodes.