Quantcast
Channel: Apache Timeline
Viewing all articles
Browse latest Browse all 5648

get page instance in AtmosphereRequestHandler

$
0
0
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

Viewing all articles
Browse latest Browse all 5648

Trending Articles