简体   繁体   English

Weblogic 10.3上的richfaces皮肤问题

[英]Skin problem with richfaces on Weblogic 10.3

I have a big problem with richfaces and weblogic 10.3. 我对richfaces和weblogic 10.3有很大的疑问。 I use seam 2.2.0 on weblogic for my project. 我将weblogic上的seam 2.2.0用于我的项目。

All jsf and richfaces fonctionnalities work fine except one. 除了一个以外,所有jsf和richfaces功能都可以正常工作。 The skin doesn't work, nothing is skinned so my application has none css and it's very dumpy. 皮肤不起作用,没有皮肤,所以我的应用程序没有CSS,而且非常笨拙。

What is wrong in my configuration ? 我的配置有什么问题?

Thanks. 谢谢。

Here is my richfaces configuration in web.xml: 这是我在web.xml中的richfaces配置:

<servlet>
<servlet-name>Faces Servlet</servlet-name>
<servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
<load-on-startup>1</load-on-startup>
</servlet>
<servlet-mapping>
<servlet-name>Faces Servlet</servlet-name>
<url-pattern>*.seam</url-pattern>
</servlet-mapping>

<context-param>
<param-name>org.richfaces.SKIN</param-name>
<param-value>blueSky</param-value>
</context-param>
<context-param>
<param-name>org.richfaces.CONTROL_SKINNING</param-name>
<param-value>enable</param-value>
</context-param>
<context-param>
<param-name>org.richfaces.LoadStyleStrategy</param-name>
<param-value>ALL</param-value>
</context-param>

<listener>
<listener-class>org.jboss.seam.servlet.SeamListener</listener-class>
</listener>
<listener>
<listener-class>com.sun.faces.config.ConfigureListener</listener-class>
</listener>

<filter>
<filter-name>Seam Filter</filter-name>
<filter-class>org.jboss.seam.servlet.SeamFilter</filter-class>
</filter>
<filter-mapping>
<filter-name>Seam Filter</filter-name>
<url-pattern>/*</url-pattern>
</filter-mapping>

<servlet>
<servlet-name>Seam Resource Servlet</servlet-name>
<servlet-class>org.jboss.seam.servlet.SeamResourceServlet</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>Seam Resource Servlet</servlet-name>
<url-pattern>/seam/resource/*</url-pattern>
</servlet-mapping>

<context-param>
<param-name>facelets.DEVELOPMENT</param-name>
<param-value>true</param-value>
</context-param>
<context-param>
<param-name>javax.faces.DEFAULT_SUFFIX</param-name>
<param-value>.xhtml</param-value>
</context-param>

<security-constraint>
<display-name>Restrict raw XHTML Documents</display-name>
<web-resource-collection>
<web-resource-name>XHTML</web-resource-name>
<url-pattern>*.xhtml</url-pattern>
</web-resource-collection>
<auth-constraint />
</security-constraint>

Two ideas: 两个想法:

  • If this happens in all your pages that follow a specific Facelets template, and does not happen for others,then there is something wrong in your Facelets template (a tag not closing correctly?) You can check this by creating a simple page with a couple of components and seeing if they are skinned correctly. 如果在遵循特定Facelets模板的所有页面中都发生了这种情况,而在其他页面上没有发生这种情况,那么Facelets模板中就有问题(标签无法正确关闭?),您可以通过创建一个简单的页面并进行几个检查组件并查看它们是否蒙皮正确。
  • It may be your security constraint. 这可能是您的安全限制。 Put your pages under a dir (for example, /pages/*.xhtml) and restrict that one. 将您的页面放在一个目录下(例如/pages/*.xhtml),并限制该目录。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM