[jboss-user] [JBoss Seam] - Seam 1.1CR1 + IceFaces & Tomahawk problem!

sherkan777 do-not-reply at jboss.com
Thu Nov 30 05:36:35 EST 2006


Hi!
I'm trying to use together Seam 1.1CR1 with IceFaces and Tomahawk components.

Previous I used Seam 1.1Beta with Tomahawk, and it worked fine.After migration to Seam 1.1CR1 and made changes in web.xml and faces-config.xml to support IceFaces, copomnents like <t:inputHtml rendering but doesn't work!

I also get an WARN:
11:23:24,796 WARN  [DefaultAddResource] MyFaces special javascript could not be retrieved from request-map.

Problem is component not submit field, question why?
Here is a sample of my code:


  | <h:form id="newQuestion">
  | <t:inputHtml id="formularz" value="#{newQuestionAction.question}"
  | 			            fallback="false"
  |                                     allowExternalLinks="true"
  |                                     addKupuLogo="false"
  |                                     showAllToolBoxes="false"
  |                                     allowEditSource="false"
  |                                     showPropertiesToolBox="false"
  |                                     showLinksToolBox="false"
  |                                     showImagesToolBox="false"
  |                                     showTablesToolBox="false"
  |                                     showDebugToolBox="false"
  | 	                            showCleanupExpressionsToolBox="false"/>	
  | <h:commandButton action="#{newQuestionAction.cancel}" value="#{messages['newQuestionAction.cancel']}"/>
  | 

web.xml

  | <?xml version="1.0" encoding="UTF-8"?>
  | 
  | <web-app version="2.5"
  |     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-app_2_5.xsd">
  | 
  |     <!-- Seam -->
  |    
  |     <listener>
  |         <listener-class>org.jboss.seam.servlet.SeamListener</listener-class>
  |     </listener>
  | 
  |     <!-- Propagate conversations across redirects -->
  | <!--
  |     <filter>
  |         <filter-name>Seam Redirect Filter</filter-name>
  |         <filter-class>org.jboss.seam.servlet.SeamRedirectFilter</filter-class>
  |     </filter>
  |     
  |     <filter-mapping>
  |         <filter-name>Seam Redirect Filter</filter-name>
  |         <url-pattern>*.seam</url-pattern>
  |     </filter-mapping>
  | -->
  | 
  | 	<!-- Tomahawk -->
  | 	<filter>
  | 		<filter-name>MyFacesExtensionsFilter</filter-name>
  | 		<filter-class>org.apache.myfaces.webapp.filter.ExtensionsFilter</filter-class>
  | 	    <init-param>
  | 	        <param-name>maxFileSize</param-name>
  | 	        <param-value>20m</param-value>
  | 	    </init-param>
  | 	</filter>
  | 	
  | 	<filter-mapping>
  | 	    <filter-name>MyFacesExtensionsFilter</filter-name>
  | 	    <servlet-name>Persistent Faces Servlet</servlet-name>
  | 	</filter-mapping>
  | 	
  | 	<filter-mapping>
  | 	    <filter-name>MyFacesExtensionsFilter</filter-name>
  | 		<url-pattern>/faces/myFacesExtensionResource/*</url-pattern> 
  | 	</filter-mapping>
  |     <!-- /Tomahawk -->  
  | 
  |     <filter>
  |         <filter-name>Seam Exception Filter</filter-name>
  |         <filter-class>org.jboss.seam.servlet.SeamExceptionFilter</filter-class>
  |     </filter>
  |     
  |     <filter-mapping>
  |         <filter-name>Seam Exception Filter</filter-name>
  |         <url-pattern>*.seam</url-pattern>
  |     </filter-mapping>
  | 
  |     <!-- JSF -->
  |     
  |     <context-param>
  |         <param-name>javax.faces.STATE_SAVING_METHOD</param-name>
  |         <param-value>client</param-value>
  |     </context-param>
  | 
  |     <context-param>
  |         <param-name>javax.faces.DEFAULT_SUFFIX</param-name>
  |         <param-value>.xhtml</param-value>
  |     </context-param>
  | 
  |     <context-param>
  |         <param-name>facelets.DEVELOPMENT</param-name>
  |         <param-value>true</param-value>
  |     </context-param>
  | 
  |     <context-param>
  |         <param-name>com.icesoft.faces.actionURLSuffix</param-name>
  |         <param-value>.seam</param-value>
  |     </context-param>
  | 
  |     <context-param>
  |         <param-name>com.icesoft.faces.synchronousUpdate</param-name>
  |         <param-value>true</param-value>
  |     </context-param>
  | 
  |     <servlet>
  |         <servlet-name>Faces Servlet</servlet-name>
  |         <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
  |         <load-on-startup>1</load-on-startup>
  |     </servlet>
  | 
  |     <!-- Faces Servlet Mapping -->
  | <!--
  |     <servlet-mapping>
  |         <servlet-name>Faces Servlet</servlet-name>
  |         <url-pattern>*.seam</url-pattern>
  |     </servlet-mapping>
  | 
  | -->
  | 
  |   <servlet>
  |     <servlet-name>Blocking Servlet</servlet-name>
  |     <servlet-class>com.icesoft.faces.webapp.xmlhttp.BlockingServlet</servlet-class>
  |     <load-on-startup> 1 </load-on-startup>
  |   </servlet>
  | 
  |     <servlet>
  |         <servlet-name>Persistent Faces Servlet</servlet-name>
  |         <servlet-class>com.icesoft.faces.webapp.xmlhttp.PersistentFacesServlet</servlet-class>
  |         <load-on-startup>1</load-on-startup>
  |     </servlet>
  | 
  |   <servlet-mapping>
  |     <servlet-name>Persistent Faces Servlet</servlet-name>
  |     <url-pattern>/xmlhttp/*</url-pattern>
  |   </servlet-mapping>
  | 
  |   <servlet-mapping>
  |     <servlet-name>Persistent Faces Servlet</servlet-name>
  |     <url-pattern>/xmlhttp/*</url-pattern>
  |   </servlet-mapping>
  | 
  |   <servlet-mapping>
  |     <servlet-name>Persistent Faces Servlet</servlet-name>
  |     <url-pattern>*.iface</url-pattern>
  |   </servlet-mapping>
  | 
  |   <!-- Blocking Servlet Mapping -->
  |   <servlet-mapping>
  |     <servlet-name>Blocking Servlet</servlet-name>
  |     <url-pattern>/block/*</url-pattern>
  |   </servlet-mapping>
  | 
  |     <!-- Faces Servlet Mapping -->
  |     <servlet-mapping>
  |         <servlet-name>Persistent Faces Servlet</servlet-name>
  |         <url-pattern>*.seam</url-pattern>
  |     </servlet-mapping>
  | 
  |     <!-- MyFaces -->
  |     <listener>
  |         <listener-class>org.apache.myfaces.webapp.StartupServletContextListener</listener-class>
  |     </listener>
  |  
  |     <session-config>
  | 		<session-timeout>30</session-timeout>
  | 	</session-config> 
  |     <!-- JSF RI -->
  |     <!--
  |     <listener>
  |         <listener-class>com.sun.faces.config.ConfigureListener</listener-class>
  |     </listener> 
  |     -->
  |     <context-param>
  |         <param-name>facelets.LIBRARIES</param-name>
  |         <param-value>/WEB-INF/tomahawk.taglib.xml</param-value>
  | 	</context-param>     
  |     
  | </web-app>
  | 
  | 
  | 

and faces-config.xml

  | <?xml version="1.0" encoding="UTF-8"?>
  | <!DOCTYPE faces-config 
  |     PUBLIC "-//Sun Microsystems, Inc.//DTD JavaServer Faces Config 1.0//EN"
  |     "http://java.sun.com/dtd/web-facesconfig_1_0.dtd">
  |     
  | <faces-config>
  | 
  |     <application>
  |         <view-handler>com.icesoft.faces.facelets.D2DSeamFaceletViewHandler</view-handler>
  |     </application>
  |     
  |     <!-- Select one of the standard transaction models for the Seam application -->
  | 
  |     <lifecycle>
  |         <phase-listener>org.jboss.seam.jsf.SeamPhaseListener</phase-listener>
  |     </lifecycle>
  | 
  |   <application>
  | 		<message-bundle>messages</message-bundle>
  | 		<locale-config>
  | 			<default-locale>pl</default-locale>
  | 			<supported-locale>en</supported-locale>
  | 		</locale-config>
  | 	</application>
  | 	
  | 	<navigation-rule>
  | 		<navigation-case>
  | 			<from-outcome>home</from-outcome>
  | 			<to-view-id>/home.xhtml</to-view-id>
  | 			<redirect />
  | 		</navigation-case>
  | 	</navigation-rule>
  | </faces-config>
  | 
  | 

I think problem could be with those js file and Warning or I do somethink wrong to use tomahawk...


View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3989980#3989980

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3989980



More information about the jboss-user mailing list