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.

asked 03.08.2012 at 05:17

Karel%20Tauser's gravatar image

Karel Tauser
(suspended)
accept rate: 0%


There is a PublicAPI method that returns content object values for a defined language. Use this to set the values of your labels.

String newLabelText = ivy.cms.getContentObjectValue("/aCmsPath", java.util.Locale.getDefault());
panel.myLabel.setText(newLabelText)

A simpler solution would be to try to define the language before the real dialogs are loaded.

link

answered 28.08.2012 at 07:31

Reguel%20Wermelinger's gravatar image

Reguel Werme... ♦♦
9.4k31958
accept rate: 70%

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "Title")
  • image?![alt text](/path/img.jpg "Title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×40
×26

Asked: 03.08.2012 at 05:17

Seen: 2,055 times

Last updated: 03.08.2012 at 05:17