Well, I believe a functionnality should work whatever teh reason you have to use it. I agree it make sense to refresh the whole page... if it is what you want. If it is not what you need, it makes very little sense. Of course, it it does not work, I will not use it. No choice. But I think it would be safer to know why it does not work, since technically, it should. Or shouldn't it? But why?
It is the same kind of problem we have with character encoding. Every time someone has a problem with encoding, the answer can be "use XXX encoding for all and there will be no problem". This is false AND irrelevant. It is irrelevant because the question is "how to use this functionnality" and not "how to do without it". It is false because it does not solve the problem. In the case of Ajax switching locale, remember the problem is updating the datepicker. If you switch the locale in a situation where no datepicker is displayed and then load a datepicker through Ajax, it is still broken. But of course, the solution is not to use Ajax. Or a slightly better solution: do not use Ajax to switch locales AND do not use anything else than US ASCII in the datepicker labels. Pierre-Yves Eelco Hillenius a écrit : >> I finally decided to apply the solution proposed by Eelco (only change >> locale through a normal link so that the whole page is reloaded) >> although I feel it is like closing our eyes and pretended the problem is >> solved. > > I don't agree with that. Changing the locale potentially has effect on > the whole page anyway, so changing it with a full refresh makes sense. > Also, I think it's a pretty extreme corner case to want to use Ajax to > switch the session's locale. Unless it is something users do 50 times > per session, which seems unlikely. > > 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