Hello, ok, I think I understand what you're trying to do. You want to code a bookmarkable link which links to the current page, but with an additional parameter.
I think getRequest().getRequestParameters().getParameters() should always return the same, no matter if the page was mounted or not. So this could be a bug, for which you should file a JIRA request. But I'm not very profound in the inner workings of Wicket, so maybe there is a reason for this behaviour. A blind shot for what you could also try: Map parameterMap = ((WebRequest)getRequest).getParameterMap(); But I'm not sure if this will change anything, it's just a guess after looking at the JavaDocs (actually, a quick look at the source rather hints at me that it won't work, but maybe it's worth a try). Greetings, Rüdiger smallufo wrote: > > > 2007/3/12, Rüdiger Schulz <[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>>: > > Hello, > > you could pass the whole map to your components. > > > Hello , this is what I want to avoid. > I have a compoment : 'LanguageBar' , which 'appends' language=Chinese or > language=English or...whatever to current ParameterMap is. > So I wrote this : > > (In LanguageBar.java : ) > Map parameterMap = getRequest().getRequestParameters().getParameters(); > parameters.put("language", language); > PageParameters pps = new PageParameters(parameters); > > after I use mountBookmarkablePage() , I get a zero-sized map. > > It seems I have to pass the PageParameters from Page to LanguageBar , > but it is a little trouble to me , because the LanguageBar may be > embedded very deeply. So I have to pass PageParameters from Page to > PanelA to PanelB to PanelC to LanguageBar ... > and the signatures of PanelA/PanelB/PanelC need to change . > > Any way to avoid this ? > > > ------------------------------------------------------------------------ > > ------------------------------------------------------------------------- > 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 ------------------------------------------------------------------------- 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
