Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Toggloing between two commandlinks  RSS feed

 
madupathi arun
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi
I am developing multilingual

When I click on german commandlink it is showing german content and toggoling to english.this works fine

But When i click on english it is showing english content displaying all alnguages(except english)
my requirement is to show only one language.
my code

<div class="link">
<h:commandLink rendered="#{currentLanguageResolver.german}"
styleClass="substituteCare"
action="#{currentLanguageResolver.toEnglish}"
title="#{i18n['ENGLISH_LANGUAGE']}">English</h:commandLink>
<h:commandLink rendered="#{currentLanguageResolver.english}"
styleClass="substituteCare"
action="#{currentLanguageResolver.toGerman}"
title="#{i18n['GERMAN_LANGUAGE']}">Deutsch</h:commandLink>
</div>



<div class="link">
<h:commandLink rendered="#{currentLanguageResolver.french}" styleClass="substituteCare"
action="#{currentLanguageResolver.toEnglish}"
title="#{i18n['ENGLISH_LANGUAGE']}">English</h:commandLink>
<h:commandLink rendered="#{currentLanguageResolver.english}"
styleClass="substituteCare"
action="#{currentLanguageResolver.toFrench}"
title="#{i18n['FRENCH_LANGUAGE']}">French</h:commandLink>
</div>
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!