my dog learned polymorphism
The moose likes JSF and the fly likes Toggloing between two commandlinks Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Java » JSF
Reply Bookmark "Toggloing between two commandlinks" Watch "Toggloing between two commandlinks" New topic
Author

Toggloing between two commandlinks

madupathi arun
Greenhorn

Joined: Feb 25, 2008
Posts: 23
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>
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Toggloing between two commandlinks
 
Similar Threads
Issue using h:commandLink with rendered attribute
Model update problem
control the running order of different back bean functions
Component ID frm1_window viewid has already been found in the view
Problem in creating a search result page