Hello,

The application I am working on uses i18n. Wicket has been great with this.
:)

Our base page that every other page extends from, does the following:

getSession().setLocale(((INLWebSession)getSession()).getCredentials((WebRequest)getRequest()).getPreferredLocale());

to set the current locale based on the users preference. The content of the
application is in an iframe. (The wicket pages are in the iframe) The
navigation, preferences elements, etc. are outside the iframe in what we
refer to as the wrapper. Changing the language is done through this wrapper.
When the display language is changed, we refresh the contents of the iframe
and it comes back in the new language.

HOWEVER

We have one page that uses TabbedPanel with two tabs. This page (and tabs)
correctly internationalizes based on the locale used when the page is
loaded. Changing the language in the wrapper does cause the page to refresh,
but not cause it to change languages.

Is there something "special" with tabs and TabbedPanel?

Another issue with the same page, we use the following constructors:

public ReviewPage(String ahId) {
       build(ahId, 0);
   }

public ReviewPage(String ahId, int tab) {
       build(ahId, tab);
   }

So, if no tab number is passed in it uses tab 0. From tab 1, there are
actions that update the underlying object and use:

setResponsePage(new ReviewPage(req.getReqId(), 1) );

to show the changes, effectively just calling it's self. This work just
fine.

However, from a different wicket page trying to have a link that uses the
setResponsePage(new ReviewPage(req.getReqId(), 1) ); causes a
NotSerializableException. Why / how does the same call cause two different
results?

Thanks for any insights.

-Shawn
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user

Reply via email to