this.txHeadline = new JbsLangTextField(ClientGlobals.getMainDbLanguage());
this.txLongText = new JbsLangTextArea(ClientGlobals.getMainDbLanguage());
}
protected JbsLangStrings getLongTexts() {
JbsLangStrings langStrings = new JbsLangStrings();
try {
JbsLanguagesRemote langRemote = (JbsLanguagesRemote)ClientTools.getRemoteBean(JbsLanguagesRemote.class.getName());
List<JbsLanguage> languages = langRemote.getAllLanguages();
Iterator<JbsLanguage> it = languages.iterator();
while (it.hasNext()) {
JbsLanguage language = it.next();
JbsLangString langString = new JbsLangString(language);
langString.setText(this.getCmsNewsEntry().getLongText(language));
langStrings.add(langString);
}
} catch (Exception e) {
logger.error("Error retrieving long-texts.", e);
}