Hi, I found this problem and I cannot find any sollution by myself. So I ask you for a help.
I localized my application to two languages. To all pages I added links for changing localization. The onClick() methods of those links contain just getSession.setLocale(requestedLocalization). That works great after click on the links all texts in my page are localized to the right language. The problem occurs when I need to style my page by CSS. I need to add class to the generated links for localization to know which language is active. So I added new AttributeModifier to those links. But when setLocale() is called, the page refreshs only text and I need to reload the localization links component too. I tried to change my localization links to AjaxLinks and in onClick() methos add the component to AjaxRequestTarget and then call setLocale(). But when I do this the localization links are rerendered as I expected and CSS classes are set correctly but the texts are not localized. Please help, how can I do these two things together? thanks for any advice Milan --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
