如题。

解决方案 »

  1.   

    You can use buld file which is a properties file .
    And you can write your message in it,for example: 
    carstore.Conversion_Error=Konvertierungs-Fehler: Wert '{0}' f\u00fcr Modell '{1}'
      

  2.   

    就是自己写个properties文件
    好像还需要用jdk自带的native2ascii.exe来转换一下
    最后配置好了就可以用了(当然,这部是最复杂的),过几天来研究
      

  3.   

    native2ascii -encoding utf8 source.properties target.properties
      

  4.   

    写好properties文件后放在WEB-INF/class目录下面
    首先在faces-config.xml里面配置
    <application>
        <message-bundle>CustomMessages</message-bundle>
    </application>
    然后页面里加入这句
    <f:loadBundle basename="CustomMessages" var="bundle"/>JSF标准的Validator输出的信息是这样在properties里面配置的,比如Require这个Validator:
    javax.faces.component.UIInput.REQUIRED=This field is required.
    其它的自己去JSF的doc里面查吧,都有的。
      

  5.   

    用 winzip/winrar 打开 jsf-impl.jar/jsf-api.jar 搜索 *.properties.一个一个打开看。