[jboss-user] [JBoss Seam] - configuring Display Tag library with seam

ask4saif do-not-reply at jboss.com
Tue Jan 23 01:47:13 EST 2007


dear fellows,

I am have configured the display tag library with jboss seam. It is working to the extent of displaying the data in the <display:table name="list" />.

when i use the <display:table name="list" export="true" />. It displays the data table and the export options, but when click on export CSV or excel. It gives me the following exception of :


  | 11:39:35,000 ERROR [UIComponentTag] Faces context not found. getResponseWriter will fail. Check if the FacesServlet has been initialized at all in your web.xml.
  | 11:39:35,015 ERROR [[jsp]] Servlet.service() for servlet jsp threw exception
  | java.lang.NullPointerException
  | 	at javax.faces.webapp.UIComponentTag.setupResponseWriter(UIComponentTag.java:615)
  | 	at javax.faces.webapp.UIComponentTag.doStartTag(UIComponentTag.java:217)
  | 	at org.apache.myfaces.taglib.core.ViewTag.doStartTag(ViewTag.java:71)
  | 	at org.apache.jsp.secretquestions_jsp._jspx_meth_f_view_0(secretquestions_jsp.java:203)
  | 	at org.apache.jsp.secretquestions_jsp._jspService(secretquestions_jsp.java:178)
  | 	at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
  | 	at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
  | 	at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:332)
  | 	at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
  | 	at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
  | 	at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
  | 	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
  | 	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
  | 	at org.displaytag.filter.ResponseOverrideFilter.doFilter(ResponseOverrideFilter.java:140)
  | 	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.SecurityAssociationValve.invoke(SecurityAssociationValve.java:175)
  | 	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)
  | 

I have configured the filter and filter mapping for the display tag in the web.xml like:


  | <!-- Filter for Display Taglib -->
  |     <filter>
  | 	    <filter-name>ResponseOverrideFilter</filter-name>
  |     	<filter-class>org.displaytag.filter.ResponseOverrideFilter</filter-class>
  | 	</filter>
  | 
  | 	<filter-mapping>
  |     	<filter-name>ResponseOverrideFilter</filter-name>
  | 	    <url-pattern>*.seam</url-pattern>
  | 	</filter-mapping>
  | 	<filter-mapping>
  |     	<filter-name>ResponseOverrideFilter</filter-name>
  | 	    <url-pattern>*.jsp</url-pattern>
  | 	</filter-mapping>
  | 

can anyone help me on this problem,
thank you in advance

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

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



More information about the jboss-user mailing list