I have a small problem...
My web App is localized in three languages: Italian, German, and English... I choosed the apple standard way to localize the app, so i have localized my components, i hace created a component containing these three actions:
public WOComponent setLangITA() { Object[] tempArray = new Object[]{"Italian"}; NSArray languages = new NSArray(tempArray); session().setLanguages(languages); WOComponent nextPage = context().page(); return nextPage; }
public WOComponent setLangENG() { Object[] tempArray = new Object[]{"English"}; NSArray languages = new NSArray(tempArray); session().setLanguages(languages); WOComponent nextPage = context().page(); return nextPage; }
public WOComponent setLangGER() { Object[] tempArray = new Object[]{"German"}; NSArray languages = new NSArray(tempArray); session().setLanguages(languages); WOComponent nextPage = context().page(); return nextPage; }
these methods change the language in the session but there is a trouble... When I click an HyperLink bount to one of these actions the page reloads unchanged, to get the localized page i must navigate to another page. There is a way to force the component reloading?
Thanks Amedeo |