> you don't need that - only mount your pages once. I would subclass the
> application pages from a common page that looks like this:
>
> public abstract class MyPage extends WebPage {
>
> public MyPage(PageParameters params) {
>    String lang = params.getString("lang", "en");
>    getSession().setLocale(lang);
> }
>
> }
>
> If you mount a page you can put /lang/de or /lang/fr in the url. If
> you don't mount your page you can add ?lang=de to your bookmarkable urls

Yes, you do not need to mount. If you don't care don't do it, or just
do it for the pages or packages you do care about. Without mounting,
bookmarkable pages are available through an url like:

http://server/webapp/?wicket:bookmarkablePage=:mypackage.MyPage

so appending a parameter looks like

http://server/webapp/?wicket:bookmarkablePage=:mypackage.MyPage&lang=fr

Also, if you're developing with Wicket it is likely you don't end up
with hundreds of pages. It depends on how you want to do your
development, but working with panels/ sections of the page that can be
replaced etc is pretty powerful. See
http://chillenious.wordpress.com/2006/07/16/on-page-navigation/

Eelco

-------------------------------------------------------------------------
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
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user

Reply via email to