1 Reply Latest reply on Oct 23, 2008 10:05 AM by Ilya Shaikovsky

    integrating extendeddatatable component into a project

    rohit sharma Newbie

      Hello Everyone

      I was using myfaces-jsf1.1 and trinidad components in my project.I want to replace the table with extendeddatatable using richfaces.I downloaded myfaces-jsf1.2 into the web-inf folder and made the necessary changes to web.xml file as specified in the tutorial.This is the small table i tried to implement.

      <h:form>
      <h:panelGrid columns="2" columnClasses="top,top">
      <rich:extendedDataTable value="#{Bean.Data}" var="data" id="table"
      width="580px" height="400px"

      <rich:column sortable="false">
      <f:facet name="header">
      <h:outputText value="Flag"/>
      </f:facet>

      </rich:column>
      <rich:column sortable="true" width="170px">
      <f:facet name="header">
      <h:outputText value="State Name"/>
      </f:facet>
      <h:outputText value="#{data.orig}"/>
      </rich:column>
      <rich:column sortable="true" width="170px">
      <f:facet name="header">
      <h:outputText value="State Capital"/>
      </f:facet>
      <h:outputText value="#{data.dest}"/>
      </rich:column>
      <rich:column sortable="false">
      <f:facet name="header">
      <h:outputText value="Time Zone"/>
      </f:facet>
      <h:outputText value="#{data.id}"/>
      </rich:column>
      </rich:extendedDataTable>

      </h:panelGrid>
      </h:form>

      I am using a OAS server.When I deploy it and open the home page i get the folowing error.

      java.lang.UnsupportedOperationException
      at javax.faces.context.ExternalContext.setResponse(ExternalContext.java:149)
      at org.apache.myfaces.application.jsp.JspViewHandlerImpl.buildView(JspViewHandlerImpl.java:483)
      at org.apache.myfaces.application.jsp.JspViewHandlerImpl.renderView(JspViewHandlerImpl.java:337)
      at org.ajax4jsf.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:108)
      at org.ajax4jsf.application.AjaxViewHandler.renderView(AjaxViewHandler.java:189)
      at org.apache.myfaces.trinidadinternal.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:181)
      at org.ajax4jsf.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:108)
      at org.ajax4jsf.application.AjaxViewHandler.renderView(AjaxViewHandler.java:189)
      at org.apache.myfaces.lifecycle.RenderResponseExecutor.execute(RenderResponseExecutor.java:41)
      at org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:140)
      at javax.faces.webapp.FacesServlet.service(FacesServlet.java:155)
      at com.evermind[Oracle Containers for J2EE 10g (10.1.3.2.0) ].server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java
      :64)
      at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._invokeDoFilter(TrinidadFilterImpl.java:208)
      at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._doFilterImpl(TrinidadFilterImpl.java:165)
      at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl.doFilter(TrinidadFilterImpl.java:138)
      at org.apache.myfaces.trinidad.webapp.TrinidadFilter.doFilter(TrinidadFilter.java:92)
      at com.evermind[Oracle Containers for J2EE 10g (10.1.3.2.0) ].server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java
      :15)
      at org.apache.myfaces.webapp.filter.ExtensionsFilter.doFilter(ExtensionsFilter.java:147)
      at com.evermind[Oracle Containers for J2EE 10g (10.1.3.2.0) ].server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher
      .java:620)
      at com.evermind[Oracle Containers for J2EE 10g (10.1.3.2.0) ].server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher
      .java:369)
      at com.evermind[Oracle Containers for J2EE 10g (10.1.3.2.0) ].server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler
      .java:865)
      at com.evermind[Oracle Containers for J2EE 10g (10.1.3.2.0) ].server.http.HttpRequestHandler.processRequest(HttpRequestHandler
      .java:447)
      at com.evermind[Oracle Containers for J2EE 10g (10.1.3.2.0) ].server.http.HttpRequestHandler.serveOneRequest(HttpRequestHandler
      .java:215)
      at com.evermind[Oracle Containers for J2EE 10g (10.1.3.2.0) ].server.http.HttpRequestHandler.run(HttpRequestHandler.java:117)
      at com.evermind[Oracle Containers for J2EE 10g (10.1.3.2.0) ].server.http.HttpRequestHandler.run(HttpRequestHandler.java:110)
      at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)
      at oracle.oc4j.network.ServerSocketAcceptHandler.procClientSocket(ServerSocketAcceptHandler.java:239)
      at oracle.oc4j.network.ServerSocketAcceptHandler.access$700(ServerSocketAcceptHandler.java:34)
      at oracle.oc4j.network.ServerSocketAcceptHandler$AcceptHandlerHorse.run(ServerSocketAcceptHandler.java:880)
      at com.evermind[Oracle Containers for J2EE 10g (10.1.3.2.0) ].util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor
      .java:303)
      at java.lang.Thread.run(Thread.java:595)


      Where am i going wrong with this?

      Thanks in advance