Loosing Icefaces Styles after navigating (IE only)
[Logo]
ICEsoft.org Forums: ICEfaces, ICEmobile, ICEpdf
[Search] Search   [Recent Topics] Recent Topics   [Groups] Home Page | www.icefaces.org  [Register] Register  [Login] Login 
Loosing Icefaces Styles after navigating (IE only)  XML
Forum Index -> Development Build Feedback
Author Message
tobias.karzewski

Joined: 21/07/2009 00:00:00
Messages: 17
Offline


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>

 Filename WebTest.zip [Disk] Download
 Description
 Filesize 5236 Kbytes
 Downloaded:  17 time(s)

tobias.karzewski

Joined: 21/07/2009 00:00:00
Messages: 17
Offline


I also have this Problem with ICEfaces 2.0 Beta 1 (using the CompatResourceServlet there).

It has something to do with the BridgeSetup, cause i'm getting this message in the console:
Code:
 25.08.2010 10:41:37 org.icefaces.event.BridgeSetup processEvent
 WARNUNG: ICEfaces configured for view /images/icon_linklist.gif but h:head and h:body components are required
 

But only in f**king IE...
judy.guglielmin

Joined: 20/02/2007 00:00:00
Messages: 1196
Offline


Did you try putting the <f:view> tag inside the <html> tag but surrounding the <h:head> and <h:body> tags?
tobias.karzewski

Joined: 21/07/2009 00:00:00
Messages: 17
Offline


Thanks for your reply. It doesn't work either :(
Can you reproduce my problem with the sampe-project?
judy.guglielmin

Joined: 20/02/2007 00:00:00
Messages: 1196
Offline


Please find the attached project based on yours. I have tested it on FF, Safari and IE8. I did a little massaging (do my own projects with maven as then I don't have to worry about the correct jars to be included). You did not have all the dependent jars and the component was not in a form. You can play around with this one if you like (all same xhtml pages).
Code:
 >mvn package
 

will build it (once you have installed maven)
 Filename testFView.zip [Disk] Download
 Description mvn build for dependent jars
 Filesize 5717 Kbytes
 Downloaded:  107 time(s)

tobias.karzewski

Joined: 21/07/2009 00:00:00
Messages: 17
Offline


Thx a lot Judy. The form around the outputStyle solved my problem :)
lenaz

Joined: 06/07/2009 00:00:00
Messages: 54
Offline


hi all!

i'm porting from 1.8.2 to 2.0 Beta1.. and now i also get this message

Code:
 14.10.2010 11:24:55 org.icefaces.event.BridgeSetup processEvent
 WARNUNG: ICEfaces configured for view /leere_seite.jspxx but h:head and h:body components are required
 


but h:head and h:body - tags are there!

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:h="http://java.sun.com/jsf/html"
       xmlns:f="http://java.sun.com/jsf/core"
       xmlns:ice="http://icefaces.org/core"
       xmlns:ui="http://java.sun.com/jsf/facelets">
 <h:head>
     <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"/>
     <title>ICEfaces Ajax</title>
 </h:head>
 <h:body>
 	<f:view>
     <h:form id="form1" prependId="false">
         <br/>
         <h:messages/>
     </h:form>
 	</f:view>
 </h:body>
 </html>
 



i don't know where to search for the cause... my webapp-server (Jetty 6) isn't rendering icefaces-pages anymore

anyone has an idea?

kind regards
 
Forum Index -> Development Build Feedback
Go to:   
Powered by JForum 2.1.7ice © JForum Team