I have a page containing a border and a form:

GreyRoundedBorder greyBorder = new GreyRoundedBorder("configFrame", new 
ResourceModel("admin.config.title"));
Form configForm = new Form("configForm", new 
CompoundPropertyModel(dbConfig));
greyBorder.add(configForm);

When I want to unit test the form using WicketTester I get a NullPointer on
    public Component getComponentFromLastRenderedPage(String path)
    {
        final Component component = getLastRenderedPage().get(path);

from BaseWicketTester. Apparently getComponentFromLastRenderedPage only 
checks the direct children of the Page and
doesn't travel down the hierarchy. How to get a reference to the 
'nested' Form ?

regards,
Thies



-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user

Reply via email to