Win a copy of Rust Web Development this week in the Other Languages forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • Ron McLeod
  • Liutauras Vilda
  • Jeanne Boyarsky
Sheriffs:
  • Junilu Lacar
  • Rob Spoor
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Tim Moores
  • Jesse Silverman
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Piet Souris
  • Frits Walraven

Toggloing between two commandlinks

 
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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>
reply
    Bookmark Topic Watch Topic
  • New Topic