[jboss-user] [JBoss Seam] - <s:link> tags not being rendered

jbenilov do-not-reply at jboss.com
Fri Aug 31 12:57:43 EDT 2007


Hi,

I'm working with the hibernate2 example from the Seam 2.0.0 CVS HEAD (today's). I have more or less succeeded in getting it to run on Tomcat 5.5; however my problem is that the <s:link> tags seem to be ignored by the Seam filter. Here is a snippet of the produced code:


  | <div class="notes"><s:link id="register" view="/register.xhtml" value="Register New User"></s:link></div>
  | 

I've had to make changes to my web.xml file in order to work around some other problems. Here it is:


  | <?xml version="1.0" encoding="UTF-8"?>
  | <web-app>   
  |       
  |     
  |     
  | 	<filter>
  | 		<display-name>Ajax4jsf Filter</display-name>
  | 		<filter-name>ajax4jsf</filter-name>
  | 		<filter-class>org.ajax4jsf.Filter</filter-class>
  | 	</filter>
  | 	<filter-mapping>
  | 		<filter-name>ajax4jsf</filter-name>
  | 		<servlet-name>Faces Servlet</servlet-name>
  | 		<dispatcher>REQUEST</dispatcher>
  | 		<dispatcher>FORWARD</dispatcher>
  | 		<dispatcher>INCLUDE</dispatcher>
  | 	</filter-mapping>
  |     
  |     <context-param>     
  |       <param-name>org.ajax4jsf.VIEW_HANDLERS</param-name>     
  |       <param-value>com.sun.facelets.FaceletViewHandler</param-value>   
  |     </context-param>        
  |     
  |     
  | 
  | 
  |     <!-- Seam -->
  |          
  |     <listener>              
  |       <listener-class>org.jboss.seam.servlet.SeamListener</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>javax.faces.STATE_SAVING_METHOD</param-name>
  |         <param-value>client</param-value>
  |     </context-param>
  |     
  |     <!-- Faces Servlet -->
  |     
  |     <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>
  |     
  |     <!-- JSF parameters -->
  |     
  |     <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>  
  |     
  |     <session-config>
  |         <session-timeout>10</session-timeout> 
  |     </session-config>
  |     
  | </web-app>
  | 
  | 

Does anyone have any ideas as to what may be causing this problem?

Regards,
Jake 

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

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



More information about the jboss-user mailing list