I've noticed something weird that I can't explain. I've created my own
RequestCycle by extending WebRequestCycle:
public class DIFRequestCycle extends WebRequestCycle {
transient Person user;
public DIFRequestCycle(WebSession webSession, WebRequest
webRequest, WebResponse response) {
super(webSession, webRequest, response);
}
public Person getUser() {
if (user == null) {
DIFSession mySession = (DIFSession) session.get();
UserService service = (UserService)
mySession.getDIFApplication().createSpringBeanProxy(UserService.class,
"userService");
if (mySession.getUserId() != 0) {
user = service.getUser(mySession.getUserId());
}
}
return user;
}
public void onEndRequest() {
user = null;
}
}
When I started using this, suddenly my urls changed from:
http://localhost:8080/hemsida/test/trupp/id/210
to
http://localhost:8080/hemsida/test/trupp/wicket:pageMapName/wicket-0/id/210
for all my pages.
I mount the pages in the application like this:
mountBookmarkablePage("/trupp", TeamPage.class);
I haven't done any other change to my application.
Any ideas what causes my nice urls to turn bad like this? :)
/Mats
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Wicket-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-user