Hi there!
'm using ICEfaces 2.0 Beta 1, with Mojarra 2.0 on Bea 10.3 and imported the xp.css as described here.
I created two pages with components using the Icefaces Styles. In my example it is panelCollapsible and panelTabSet. I also have to Buttons to navigate to between the two pages.
After the first request the Styles are correct and everything looks nice. When i navigate to the other page the Styles are lost and remain lost?!?
These are my two pages my faces-config.xml and my web.xml. I also added an example Project for Eclipse.
Is this a known IceFaces 2.0 Bug?
Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html
xmlns="http://www.w3.org/1999/xhtml"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:ice="http://www.icesoft.com/icefaces/component">
<h:head></h:head>
<h:body>
<f:view>
<ice:outputStyle href="/xmlhttp/css/xp/xp.css" />
<ice:form>
<ice:commandLink action="test" value="zu test.xhtml" />
</ice:form>
<ice:form>
<ice:panelCollapsible>
<f:facet name="header">
<ice:outputText value="Titel Index" />
</f:facet>
<ice:outputText value="Content Index" />
</ice:panelCollapsible>
<br/><br/>
<ice:panelTabSet>
<ice:panelTab label="Panel 1" title="Panel 1">
<ice:outputText value="Panel 1 Text" />
</ice:panelTab>
<ice:panelTab label="Panel 2" title="Panel 2">
<ice:outputText value="Panel 2 Text" />
</ice:panelTab>
<ice:panelTab label="Panel 3" title="Panel 3">
<ice:outputText value="Panel 3 Text" />
</ice:panelTab>
</ice:panelTabSet>
</ice:form>
</f:view>
</h:body>
</html>
Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html
xmlns="http://www.w3.org/1999/xhtml"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:ice="http://www.icesoft.com/icefaces/component">
<h:head></h:head>
<h:body>
<f:view>
<ice:outputStyle href="/xmlhttp/css/xp/xp.css" />
<ice:form>
<ice:commandLink action="index" value="zu index.xhtml" />
</ice:form>
<ice:form>
<ice:panelCollapsible>
<f:facet name="header">
<ice:outputText value="Titel Test" />
</f:facet>
<ice:outputText value="Content Test" />
</ice:panelCollapsible>
<br/><br/>
<ice:panelTabSet>
<ice:panelTab label="Panel 1" title="Panel 1">
<ice:outputText value="Panel 1 Text" />
</ice:panelTab>
<ice:panelTab label="Panel 2" title="Panel 2">
<ice:outputText value="Panel 2 Text" />
</ice:panelTab>
<ice:panelTab label="Panel 3" title="Panel 3">
<ice:outputText value="Panel 3 Text" />
</ice:panelTab>
</ice:panelTabSet>
</ice:form>
</f:view>
</h:body>
</html>
Code:
<?xml version="1.0" encoding="UTF-8"?>
<faces-config xmlns="http://java.sun.com/xml/ns/javaee"
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_2_0.xsd"
version="2.0">
<navigation-rule>
<from-view-id>*</from-view-id>
<navigation-case>
<from-outcome>index</from-outcome>
<to-view-id>/jsf/index.xhtml</to-view-id>
</navigation-case>
<navigation-case>
<from-outcome>test</from-outcome>
<to-view-id>/jsf/test.xhtml</to-view-id>
</navigation-case>
</navigation-rule>
</faces-config>
Code:
<?xml version="1.0" encoding="UTF-8"?>
<web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns="http://java.sun.com/xml/ns/javaee" xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
id="com.thyssenkrupp.tkse.promise.ui.sample" version="2.5">
<display-name>WebTest</display-name>
<welcome-file-list>
<welcome-file>default.jsp</welcome-file>
</welcome-file-list>
<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>/faces/*</url-pattern>
</servlet-mapping>
<servlet>
<servlet-name>Resource Servlet</servlet-name>
<servlet-class>com.icesoft.faces.webapp.ResourceServlet</servlet-class>
<load-on-startup>1</load-on-startup>
</servlet>
<servlet-mapping>
<servlet-name>Resource Servlet</servlet-name>
<url-pattern>/xmlhttp/*</url-pattern>
</servlet-mapping>
<context-param>
<param-name>org.icefaces.autoid</param-name>
<param-value>true</param-value>
</context-param>
<context-param>
<param-name>org.icefaces.render.auto</param-name>
<param-value>true</param-value>
</context-param>
</web-app>