myfaces-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Cagatay Civici" <cagatay.civ...@gmail.com>
Subject Re: problem with <s:excelExport>
Date Sat, 17 Feb 2007 10:44:31 GMT
Hi,

I see ExcelExportPhaseListener executed but it fails when trying to get the
value of the datatable because of SeamVariableResolver.

Yeah I guess seam stuff is not invoked so seam fails.

I don't think of a workaround for now since the issue is a result of seam
not myfaces.

Regards,

Cagatay

On 2/17/07, Mohammad Norouzi <mnrz57@gmail.com> wrote:
>
> Yes I have, but in Seam, faces servlet mapping pattern is like this:
>
>     <servlet-mapping>
>         <servlet-name>Faces Servlet</servlet-name>
>         <url-pattern>*.seam</url-pattern>
>     </servlet-mapping>
>
>
> On 2/17/07, Cagatay Civici <cagatay.civici@gmail.com> wrote:
> >
> > Hi,
> >
> > Don't you have the *.jsf Faces Servlet Mapping?
> >
> > Cagatay
> >
> > On 2/17/07, Mohammad Norouzi < mnrz57@gmail.com > wrote:
> > >
> > >
> > > Hi all
> > > I have a customized dataModel and I am using JBoss Seam and facelets
> > >
> > > when I click on link specified for Excel Export it is 2 problem:
> > >
> > > first another window open with wrong url:
> > >      http://192.168.0.157/myproject/pages/main/resultQuery. jsf
> > > ?excelExportTableId=resultQueryTable
> > >
> > > the url should have something like this:
> > >      http://192.168.0.157/searchengine/pages/main/resultQuery. seam
> > > ?excelExportTableId=resultQueryTable
> > >
> > > because I am using Seam it should meet url-pattern .seam, how can I
> > > force this component to do so.
> > >
> > > second, when I change the URL manually, an exception throws in tomcat
> > > console with following message:
> > >
> > > I set the State_saving_method ro Server, please help me if anyone have
> > > had this experience.
> > >
> > > ----------------
> > > ERROR Exception in PhaseListener RESTORE_VIEW(1) afterPhase
> > > java.lang.IllegalStateException: No phase id bound to current thread
> > > (make sure you do not have two SeamPhaseL
> > > istener instances installed)
> > >         at org.jboss.seam.contexts.PageContext.getPhaseId(
> > > PageContext.java:153)
> > >         at org.jboss.seam.contexts.PageContext.isRenderResponsePhase(
> > > PageContext.java:165)
> > >         at org.jboss.seam.contexts.PageContext.getCurrentReadableMap (
> > > PageContext.java:76)
> > >         at org.jboss.seam.contexts.PageContext.get(PageContext.java
> > > :66)
> > >         at org.jboss.seam.contexts.Contexts.lookupInStatefulContexts(
> > > Contexts.java:160)
> > >         at org.jboss.seam.Component.getInstance (Component.java:1635)
> > >         at org.jboss.seam.jsf.SeamVariableResolver.resolveVariable(
> > > SeamVariableResolver.java:53)
> > >         at
> > > org.apache.myfaces.custom.redirectTracker.RedirectTrackerVariableResolver.resolveVariable(RedirectT
> > > rackerVariableResolver.java:41)
> > >         at
> > > org.apache.myfaces.custom.security.SecurityContextVariableResolver.resolveVariable
> > > (SecurityContextV
> > > ariableResolver.java:45)
> > >         at
> > > com.sun.facelets.el.LegacyELContext$LegacyELResolver.getValue (
> > > LegacyELContext.java:134)
> > >         at com.sun.el.parser.AstIdentifier.getValue(AstIdentifier.java
> > > :65)
> > >         at com.sun.el.parser.AstValue.getValue(AstValue.java:106)
> > >         at com.sun.el.ValueExpressionImpl.getValue (
> > > ValueExpressionImpl.java:192)
> > >         at com.sun.facelets.el.TagValueExpression.getValue(
> > > TagValueExpression.java:71)
> > >         at com.sun.facelets.el.LegacyValueBinding.getValue(
> > > LegacyValueBinding.java:56)
> > >         at javax.faces.component.UIData.getValue(UIData.java:1023)
> > >         at
> > > org.apache.myfaces.component.html.ext.HtmlDataTableHack.createDataModel
> > > (HtmlDataTableHack.java:437)
> > >
> > >         at
> > > org.apache.myfaces.component.html.ext.HtmlDataTable.createDataModel (
> > > HtmlDataTable.java:847)
> > >         at
> > > org.apache.myfaces.component.html.ext.HtmlDataTableHack.getDataModel(
> > > HtmlDataTableHack.java:414)
> > >         at
> > > org.apache.myfaces.component.html.ext.HtmlDataTable.getDataModel(
> > > HtmlDataTable.java :839)
> > >         at
> > > org.apache.myfaces.component.html.ext.HtmlDataTableHack.getRowCount(
> > > HtmlDataTableHack.java:87)
> > >         at
> > > org.apache.myfaces.custom.excelexport.ExcelExportPhaseListener.addColumnValues(ExcelExportPhaseList
> > >
> > > ener.java:134)
> > >         at
> > > org.apache.myfaces.custom.excelexport.ExcelExportPhaseListener.generateExcel
> > > (ExcelExportPhaseListen
> > > er.java:109)
> > >         at
> > > org.apache.myfaces.custom.excelexport.ExcelExportPhaseListener.afterPhase(ExcelExportPhaseListener.
> > > java:57)
> > >         at
> > > org.apache.myfaces.lifecycle.PhaseListenerManager.informPhaseListenersAfter
> > > (PhaseListenerManager.ja
> > > va:92)
> > >         at org.apache.myfaces.lifecycle.LifecycleImpl.executePhase (
> > > LifecycleImpl.java:99)
> > >         at org.apache.myfaces.lifecycle.LifecycleImpl.execute(
> > > LifecycleImpl.java:70)
> > >         at javax.faces.webapp.FacesServlet.service(FacesServlet.java
> > > :139)
> > >         at
> > > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter (
> > > ApplicationFilterChain.java:252)
> > >         at org.apache.catalina.core.ApplicationFilterChain.doFilter(
> > > ApplicationFilterChain.java:173)
> > >         at org.apache.myfaces.webapp.filter.ExtensionsFilter.doFilter(
> > > ExtensionsFilter.java :100)
> > >         at
> > > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(
> > > ApplicationFilterChain.java:202)
> > >         at org.apache.catalina.core.ApplicationFilterChain.doFilter(
> > > ApplicationFilterChain.java:173)
> > >         at org.apache.myfaces.webapp.filter.ExtensionsFilter.doFilter(
> > > ExtensionsFilter.java:147)
> > >         at
> > > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(
> > > ApplicationFilterChain.java:202)
> > >         at org.apache.catalina.core.ApplicationFilterChain.doFilter(
> > > ApplicationFilterChain.java:173)
> > >         at org.jboss.seam.servlet.SeamRedirectFilter.doFilter(
> > > SeamRedirectFilter.java:29)
> > >         at
> > > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter (
> > > ApplicationFilterChain.java:202)
> > >         at org.apache.catalina.core.ApplicationFilterChain.doFilter(
> > > ApplicationFilterChain.java:173)
> > >         at org.jboss.seam.servlet.SeamCharacterEncodingFilter.doFilter
> > > (SeamCharacterEncodingFilter.java :41)
> > >         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.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:856)
> > >         at
> > > org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(
> > > Http11Protocol.ja
> > > va:744)
> > >         at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(
> > > PoolTcpEndpoint.java:527)
> > >         at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt
> > > (LeaderFollowerWorkerThread.java :80)
> > >         at
> > > org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(
> > > ThreadPool.java:684)
> > >         at java.lang.Thread.run(Thread.java:595)
> > > ----------------
> > >
> > >
> > > --
> > > Regards,
> > > Mohammad
> >
> >
> >
>
>
> --
> Regards,
> Mohammad

Mime
View raw message