<?xml version="1.0" encoding="utf-8"?>
<rss xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title>Answers to: Update rich dialog UI after changing the session language?</title><link>https://answers.axonivy.com/questions/460/update-rich-dialog-ui-after-changing-the-session-language</link><description>&lt;p&gt;I need to change the session language in the logic of a Rich Dialog. How can I update the labels or other texts on the panel? Especially if the texts are coming from the CMS.&lt;/p&gt;</description><atom:link href="https://answers.axonivy.com/questions/460/update-rich-dialog-ui-after-changing-the-session-language" rel="self"></atom:link><language>en</language><lastBuildDate>Tue, 28 Aug 2012 07:31:28 -0400</lastBuildDate><item><title>Answer by Reguel Wermelinger</title><link>https://answers.axonivy.com/questions/460/update-rich-dialog-ui-after-changing-the-session-language/461</link><description>&lt;p&gt;There is a PublicAPI method that returns content object values for a defined language. Use this to set the values of your labels. &lt;/p&gt;
&lt;pre&gt;&lt;code&gt;String newLabelText = ivy.cms.getContentObjectValue("/aCmsPath", java.util.Locale.getDefault());
panel.myLabel.setText(newLabelText)
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;A simpler solution would be to try to define the language before the real dialogs are loaded.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Reguel Wermelinger</dc:creator><pubDate>Tue, 28 Aug 2012 07:31:28 -0400</pubDate><guid>https://answers.axonivy.com/questions/460/update-rich-dialog-ui-after-changing-the-session-language/461</guid></item></channel></rss>