Configurating seam for facelets and myfaces-tomahawk : 

I have added successfully some tomahawk elements to the current seam-booking 
example (jboss-seam-1.0.0.CR2), running in jboss-4.0.4.CR2, following these 
steps: 

1- Obtain the file tomahawk.taglib.xml from the site of facelets: 
http://wiki.apache.org/myfaces-data/attachments/Use_Facelets_with_Tomahawk/attachments/
 

2- Put tomahawk.taglib.xml in WEB-INF/ 

3- Put tomahawk.jar in WEB-INF/lib 
This version of tomahawk.jar is taken from the seam-issues example 

4- Add to web.xml : 
<context-param> 
<param-name>facelets.LIBRARIES</param-name> 
<param-value>/WEB-INF/tomahawk.taglib.xml</param-value> 
</context-param> 

5- Add to the screen file: 
xmlns:t="http://myfaces.apache.org/tomahawk"; 

Now you can add the elements <t:> to the screen file.

I can run the example with success testing elements as <t:outputText> and 
<t:dataTable> 

But I got an exception when I added the element <t:dataList>
The exception says: 

------------------------------------------------------------------ 
ERROR [STDERR] 17/05/2006 11:18:16 AM com.sun.facelets.FaceletViewHandler 
handleRenderException 
GRAVE: Error Rendering View[/pages/hotels/hotel.jsp] 
java.lang.ClassCastException: java.lang.String 
at 
org.apache.myfaces.component.html.util.HtmlComponentUtils.getClientId(HtmlComponentUtils.java:58)
 
at 
org.apache.myfaces.custom.datalist.HtmlDataList.getClientId(HtmlDataList.java:37)
 
at 
org.apache.myfaces.custom.datalist.HtmlListRenderer.encodeBegin(HtmlListRenderer.java:61)
 
at javax.faces.component.UIComponentBase.encodeBegin(UIComponentBase.java:307) 
at javax.faces.component.UIData.encodeBegin(UIData.java:360) 
at 
com.sun.facelets.tag.jsf.ComponentSupport.encodeRecursive(ComponentSupport.java:232)
 
at 
com.sun.facelets.tag.jsf.ComponentSupport.encodeRecursive(ComponentSupport.java:239)
 
at 
com.sun.facelets.tag.jsf.ComponentSupport.encodeRecursive(ComponentSupport.java:239)
 
at com.sun.facelets.FaceletViewHandler.renderView(FaceletViewHandler.java:554) 
at org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:352) 
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:107) 
at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
 
at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
 
at 
org.jboss.seam.servlet.SeamRedirectFilter.doFilter(SeamRedirectFilter.java:23) 
at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
 
at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
 
at 
org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
 
at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
 
at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
 
at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
 
at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
 
at 
org.jboss.web.tomcat.security.CustomPrincipalValve.invoke(CustomPrincipalValve.java:54)
 
at 
org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:174)
 
at 
org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:74) 
at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126) 
at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105) 
at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
 
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148) 
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869) 
at 
org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
 
at 
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
 
at 
org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
 
at java.lang.Thread.run(Thread.java:595) 

----------------------------------------------------------------------------- 

As conclusion, in this facelet example some tomahawk elements run fine and 
another elements fail. 

I think that there are problems of compatibility between the libraries of the 
application (included seam libraries) and the libraries of the server. 

Has anyone some solution to this problem ? 

Thanks for your answers. 

Maria Consuelo Franky 
[EMAIL PROTECTED] 

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

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


-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
JBoss-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to