2013-10-10 44 views
0

有一種方法可以更改jsf中特定視圖的區域設置嗎? 我可以通過faces-config.xml嘗試語言環境,但我只想要一個特定的視圖。如何更改jsf中一個視圖的區域設置?

faces-config version="1.2" xmlns="http://java.sun.com/xml/ns/javaee" 
    xmlns:xi="http://www.w3.org/2001/XInclude" 
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
    xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-facesconfig_1_2.xsd"> 

    <application> 
     <view-handler>com.sun.facelets.FaceletViewHandler</view-handler> 
     <locale-config> 
      <default-locale>es</default-locale> 
      <supported-locale>ca</supported-locale> 
      <supported-locale>en</supported-locale> 
     </locale-config>  

回答

相關問題