Re: [Wicket-user] url mounting and weird url:s

2006-08-03 Thread Eelco Hillenius
No idea. And when you don't use that request cycle, the url stays like
it should be? It looks like Wicket thinks it has to auto-create and
use another (other than the default one your start in) page map. This
happens when you open up a new browser window/ tab for the same
session. The mechanism for that was recently improved. Could you use
wicket 1.2.1 or from svn to see whether that gets rid of your problem?

Eelco


On 8/2/06, Mats Norén [EMAIL PROTECTED] wrote:
 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.phpp=sourceforgeCID=DEVDEV
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user


-
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.phpp=sourceforgeCID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] url mounting and weird url:s

2006-08-02 Thread Mats Norén
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.phpp=sourceforgeCID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user