Good evening,
I'm trying to implement the unit test functionality of Wicket-Atmosphere.
I'm stuck on a silly thing.
I have this code in the class AtmosphereRequestHandler:
@Override
public void respond(final IRequestCycle requestCycle)
final Page page = (Page)Application.get().getMapperContext()
.getPageInstance(this.pageKey.getPageId());
final AjaxRequestTarget target =
WebApplication.get().newAjaxRequestTarget(page);
this.executeHandlers(target, page);
The page is always null, so I got an exception at the target creation,
saying page can not be null. But I'm sure the pageId I provide is OK.
Any idea?
Regards,
Pierre
I'm trying to implement the unit test functionality of Wicket-Atmosphere.
I'm stuck on a silly thing.
I have this code in the class AtmosphereRequestHandler:
@Override
public void respond(final IRequestCycle requestCycle)
final Page page = (Page)Application.get().getMapperContext()
.getPageInstance(this.pageKey.getPageId());
final AjaxRequestTarget target =
WebApplication.get().newAjaxRequestTarget(page);
this.executeHandlers(target, page);
The page is always null, so I got an exception at the target creation,
saying page can not be null. But I'm sure the pageId I provide is OK.
Any idea?
Regards,
Pierre