ice-cc:selectLocale
[Logo]
ICEsoft.org Forums: ICEfaces, ICEmobile, ICEpdf
[Search] Search   [Recent Topics] Recent Topics   [Groups] Home Page | www.icefaces.org  [Register] Register  [Login] Login 
ice-cc:selectLocale  XML
Forum Index -> JBoss Seam Integration
Author Message
sjerat

Joined: 17/03/2010 00:00:00
Messages: 1
Offline


I should like to use the <ice-cc:selectLocale /> to choose a language. But it's not working on my login.xhtml. In the login form I have added
Code:
 <ice-cc:selectLocale styleClass="localeStyle"/> 
 

but I can't see a language selector.
At the moment I use
Code:
 <h:selectOneMenu value="#{localeSelector.localeString}">
 <f:selectItems value="#{localeSelector.supportedLocales}" />
 </h:selectOneMenu><h:commandButton action="#{localeSelector.select}" value="#{messages['ChangeLanguage']}" />
 

Can you tell me why ice-cc:selectLocale don't work?

Thanks for Help
judy.guglielmin

Joined: 20/02/2007 00:00:00
Messages: 1196
Offline


Can we assume that you packaged in the composite components jar, packaged according to using seam with icefaces (if ear deployment then all icefaces jars should be at ear level) and followed the "How To" use this component:-How To Use

  • Add <ice-cc:selectLocale> to any page where you want to make a locale selection
  • Add the attribute locale="#{localeController.sessionLocale}" to your view tag(s)
  • Ensure a resource-bundle has been specified in faces-config.xml
  • Ensure localized versions of the resource-bundle are present with language locale and possibly country locale. ie: messages_en.properties messages_en_US.properties
  • Ensure each locale is registered as a supported-locale under locale-config in faces-config.xml[/list]
  •  
    Forum Index -> JBoss Seam Integration
    Go to:   
    Powered by JForum 2.1.7ice © JForum Team