jsf myfaces1.1.4几个警告

警告: /WEB-INF/faces-config.xml has been specified in the javax.faces.CONFIG_FILES context parameter of the deployment descriptor. This should be removed, as it will be loaded twice.  See JSF spec 1.1, 10.3.2

jsf1.1中把/WEB-INF/faces-config.xml作为默认的文件了,因此如果在web.xml存在的话,会警告,并且警告managebean加载两次

去掉web.xml中的

<context-param>

xml 代码
 
  1. <context-param>  
  2.     <param-name>javax.faces.CONFIG_FILES</param-name>  
  3.     <param-value>/WEB-INF/faces-config.xml</param-value>  
  4.   </context-param>  

  </context-param>

2

警告: Locale name in faces-config.xml null or empty, setting locale to default locale : zh_CN

faces-config.xml中增加

<application>
  

xml 代码
 
  1. <application>  
  2.         <locale-config>  
  3.             <default-locale>zh_CN</default-locale>  
  4.             <supported-locale>en_US</supported-locale>  
  5.             <supported-locale>de_DE</supported-locale>  
  6.             <supported-locale>fr_FR</supported-locale>  
  7.         </locale-config>  
  8.     </application>  
</application>

3

信息: No context init parameter 'org.apache.myfaces.ADD_RESOURCE_CLASS' found, u
sing default value org.apache.myfaces.renderkit.html.util.DefaultAddResource
2006-12-28 13:42:35 org.apache.myfaces.shared_tomahawk.config.MyfacesConfig getB
ooleanInitParameter
信息: No context init parameter 'org.apache.myfaces.CHECK_EXTENSIONS_FILTER' fou
nd, using default value true

web.xml中加入

<param-name><context-param></context-param>

xml 代码
 
  1. <param-name>org.apache.myfaces.ALLOW_JAVASCRIPT</param-name>  
  2.     <param-value>true</param-value>  
  3.   </context-param>  
  4.   <context-param>  
  5.     <param-name>org.apache.myfaces.DETECT_JAVASCRIPT</param-name>  
  6.     <param-value>false</param-value>  
  7.   </context-param>  
  8.   <context-param>  
  9.     <param-name>org.apache.myfaces.PRETTY_HTML</param-name>  
  10.     <param-value>true</param-value>  
  11.   </context-param>  
  12.   <context-param>  
  13.     <param-name>org.apache.myfaces.AUTO_SCROLL</param-name>  
  14.     <param-value>true</param-value>  
  15.   </context-param>  

你可能感兴趣的:(JavaScript,apache,xml,Web,JSF)