[prev in list] [next in list] [prev in thread] [next in thread] 

List:       jboss-user
Subject:    [jboss-user] [JBoss Seam] - Re: Don't support Chinese characters ?
From:       jazir1979 <do-not-reply () jboss ! com>
Date:       2006-10-31 23:12:51
Message-ID: 4010429.1162336371904.JavaMail.jboss () colo-br-02 ! atl ! jboss ! com
[Download RAW message or body]

Hi Eddie,

I am using chinese characters in Seam with no problems.

I have a messages_zh.properties with entries like:

Copyright=2006 \u8457\u4F5C


And I'm using this on my home page to allow the user to switch from their default \
locale (as sent by the browser):

<h:selectOneMenu value="#{localeSelector.localeString}">
    <f:selectItems value="#{localeSelector.supportedLocales}"/>
</h:selectOneMenu>
<h:commandButton action="#{localeSelector.select}" \
value="#{messages.home_ChangeLanguage}"/>					


And the locale support in my faces-config.xml:

 
  <locale-config>
   <default-locale>en-AU</default-locale>
   <supported-locale>zh-CN</supported-locale>
  </locale-config>



It works very well.

good luck,
Daniel.


View the original post : \
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3982241#3982241

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3982241
 _______________________________________________
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic