Very simple Wicket test to verify panel type...

2012-02-09 Thread Bjørn Grønbæk
Hi, I'm just starting out with Wicket and WicketTester... I have a page that adds one of several panels, depending of its PageParameter. I would like to verify that behaviour with WicketTester... but how to? The code is something like this: String type = null; Panel p = null;

Re: Very simple Wicket test to verify panel type...

2012-02-09 Thread Hans Lesmeister
Hi, "panelid" instead of ":panelid"? You can dump the Component-Tree to the console with tester.dumpXXX Am 09.02.12 21:59 schrieb "Bjørn Grønbæk" unter : > Hi, > > I'm just starting out with Wicket and WicketTester... > > I have a page that adds one of several panels, depending of its > PageP

Re: Very simple Wicket test to verify panel type...

2012-02-09 Thread Martin Grigorov
Hi One way to see the component paths is: org.apache.wicket.util.tester.BaseWicketTester#debugComponentTrees Another way is by using DebugBar from wicket-devutils. At http://www.wicket-library.com/wicket-examples/forminput , in the top-right corner there is a link "Inspector", click it and it wil

Re: Very simple Wicket test to verify panel type...

2012-02-10 Thread Bjørn Grønbæk
Hi Hans and Martin. The dump and debugComponentTrees was exactly what I was looking for. My pages inherit from other pages, which of course made my panels have id's like: topcontainer:subcontainer:panelid. I'll check out the other tools as well. Thanks alot. BG On 10 February 2012 08:54, Marti