Hi,

On Mon, Mar 11, 2013 at 3:15 PM, ramin <[email protected]> wrote:

> Thanks for the reply.
>
> I am very new to Wicket so please accept my apologies for being a bit
> confused.
>
> Say in a class I have:
>
> WicketTester t = getTester();
> t.startComponentInPage( myMethod() );
>
> and in a super class I have:
>
> ITestPanelSource myMethod(){
>
>    return new ITestPanelSource() {
>
>         @Override
>         public Panel getTestPanel(String panelId) {
>                 try {
>                         setPanel(createPanel(panelId));
>                         return getPanel();
>                 } catch (Exception e) {
>                         e.printStackTrace();
>                         fail(e.toString());
>                 }
>                 return null;
>         }
>     };
> }
>
> Are you saying I should replace ITestPanelSource with Panel?
>

Yes.
tester.startComponentInPage(MyPanel.class)
or
tester.startComponentInPage(new MyPanel("theId", another, arguments))


>
> Many thanks
> Ramin
>
>
>
> --
> View this message in context:
> http://apache-wicket.1842946.n4.nabble.com/Wicket-6-Migration-ITestPanelSource-and-ITestPageSource-tp4657146p4657150.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]
>
>


-- 
Martin Grigorov
jWeekend
Training, Consulting, Development
http://jWeekend.com <http://jweekend.com/>

Reply via email to