Forums Register Login

Toggloing between two commandlinks

+Pie Number of slices to send: Send
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>
Look! I laid an egg! Why does it smell like that? Tiny ad, does this smell weird to you?
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com


reply
reply
This thread has been viewed 867 times.
Similar Threads
Issue using h:commandLink with rendered attribute
Model update problem
Component ID frm1_window viewid has already been found in the view
control the running order of different back bean functions
Problem in creating a search result page
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 28, 2024 08:57:22.