Re: Testing a panel in isolation (component id not found).

2014-03-17 Thread Jens Jahnke
On Mon, 17 Mar 2014 13:58:59 +0200 Martin Grigorov wrote: MG> This method doesn't add the children components. MG> So trying to render this panel (via #startComponentInPag(panelInstance)) MG> will fail because there are HTML elements with wicket:id in the markup MG> which have no Java counterpart

Re: Testing a panel in isolation (component id not found).

2014-03-17 Thread Martin Grigorov
OK, I think I understand now. Martin Grigorov Wicket Training and Consulting On Mon, Mar 17, 2014 at 1:31 PM, Jens Jahnke wrote: > Hi, > > On Mon, 17 Mar 2014 13:05:57 +0200 > Martin Grigorov wrote: > > MG> This is the right way. > MG> Can you show us the code that causes this error ? > MG>

Re: Testing a panel in isolation (component id not found).

2014-03-17 Thread Jens Jahnke
On Mon, 17 Mar 2014 13:38:29 +0200 Martin Grigorov wrote: MG> I meant the test code that leads to the exception. Okay, here it is: private WicketTester tester; @Before public void setUp() throws Exception { tester = new WicketTester(new MyApplication()); } @Test public void testRenderPane

Re: Testing a panel in isolation (component id not found).

2014-03-17 Thread Martin Grigorov
Hi, I meant the test code that leads to the exception. On Mon, Mar 17, 2014 at 1:31 PM, Jens Jahnke wrote: > Hi, > > On Mon, 17 Mar 2014 13:05:57 +0200 > Martin Grigorov wrote: > > MG> This is the right way. > MG> Can you show us the code that causes this error ? > MG> #startComponentInPage()

Re: Testing a panel in isolation (component id not found).

2014-03-17 Thread Jens Jahnke
Hi, On Mon, 17 Mar 2014 13:05:57 +0200 Martin Grigorov wrote: MG> This is the right way. MG> Can you show us the code that causes this error ? MG> #startComponentInPage() should not fail with such error ... the exception is thrown at the line with tester.startComponentInPage, but here is the c

Re: Testing a panel in isolation (component id not found).

2014-03-17 Thread Martin Grigorov
Hi, This is the right way. Can you show us the code that causes this error ? #startComponentInPage() should not fail with such error ... Martin Grigorov Wicket Training and Consulting On Mon, Mar 17, 2014 at 1:00 PM, Jens Jahnke wrote: > Hi, > > I'm trying to test a panel in isolation using `