8 Replies Latest reply on Jun 22, 2007 7:09 AM by Fumihiko Sugiyama

    replacement for ifNotBegunOutcome in @Conversational

    Uros Milivojevic Newbie

      Hi,

      what should I use to achieve same functionality as with

      @Conversational(ifNotBegunOutcome="error")

      because this is deprecated in 1.2.1GA?

      Thanks,
      Uros!



        • 1. Re: replacement for ifNotBegunOutcome in @Conversational
          Gavin King Master

           

          <page conversation-required="true"/>


          • 2. Re: replacement for ifNotBegunOutcome in @Conversational
            Uros Milivojevic Newbie

            Hi Gavin,

            but how to redirect to error page?

            Thanks,
            Uros!

            • 3. Re: replacement for ifNotBegunOutcome in @Conversational
              Fumihiko Sugiyama Newbie

              Hi

              <page conversation-required="true" no-conversation-view-id="/somewhere.xhtml">
              


              • 4. Re: replacement for ifNotBegunOutcome in @Conversational
                Uros Milivojevic Newbie

                Hi azalea,

                now I have to add

                <page conversation-required="true" no-conversation-view-id="/somewhere.xhtml">

                for all 10 pages in wizard.
                Is there some way to make this shorter (like no-conversation-view-id="/offer*.xhtml" )?

                Thanks,
                Uros!

                • 5. Re: replacement for ifNotBegunOutcome in @Conversational
                  Uros Milivojevic Newbie

                  Hi azalea,

                  CORRECTION:

                  Instead of no-conversation-view-id="/offer*.xhtml" there should be view-id="/offer*.xhtml"?

                  <page view-id="/offer*.xhtml"
                   conversation-required="true"
                   no-conversation-view-id="/somepage.xhtml">
                  </page>



                  Thanks,
                  Uros!

                  • 6. Re: replacement for ifNotBegunOutcome in @Conversational
                    Fumihiko Sugiyama Newbie

                    Hi,

                    <page view-id="/offer*.xhtml"
                     conversation-required="true"
                     no-conversation-view-id="/somepage.xhtml">
                    </page>
                    

                    If "/offer*.html" matches just pages which need the conversation and you access that any page without conversation, I think Seam will redirect to "/somepage.xhtml".

                    Please try and tell me that result :)


                    • 7. Re: replacement for ifNotBegunOutcome in @Conversational
                      Uros Milivojevic Newbie

                      Hi azalea,

                      it doesn't work. There are to problems:
                      1) redirection doesn't happen
                      2) Exception occurs:

                      WARNING: Exception Processing ErrorPage[errorCode=404, location=/startpage.jsf]
                      ClientAbortException: java.net.SocketException: Software caused connection abort: socket write error
                       at org.apache.catalina.connector.OutputBuffer.doFlush(OutputBuffer.java:327)
                       at org.apache.catalina.connector.OutputBuffer.flush(OutputBuffer.java:293)
                       at org.apache.catalina.connector.Response.flushBuffer(Response.java:537)
                       at org.apache.catalina.core.StandardHostValve.status(StandardHostValve.java:286)
                       at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:136)
                       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.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
                       at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
                       at java.lang.Thread.run(Unknown Source)
                      Caused by: java.net.SocketException: Software caused connection abort: socket write error
                       at java.net.SocketOutputStream.socketWrite0(Native Method)
                       at java.net.SocketOutputStream.socketWrite(Unknown Source)
                       at java.net.SocketOutputStream.write(Unknown Source)
                       at org.apache.coyote.http11.InternalOutputBuffer.realWriteBytes(InternalOutputBuffer.java:746)
                       at org.apache.tomcat.util.buf.ByteChunk.flushBuffer(ByteChunk.java:433)
                       at org.apache.coyote.http11.InternalOutputBuffer.flush(InternalOutputBuffer.java:304)
                       at org.apache.coyote.http11.Http11Processor.action(Http11Processor.java:991)
                       at org.apache.coyote.Response.action(Response.java:182)
                       at org.apache.catalina.connector.OutputBuffer.doFlush(OutputBuffer.java:322)
                       ... 13 more


                      If I remove
                      <error-page>
                       <error-code>404</error-code>
                       <location>/startpage.jsf</location>
                      </error-page>

                      from web.xml error disappears but redirection steel doesn't happen.

                      If someone knows how to accomplish this help is appreciated!

                      Thanks,
                      Uros!

                      • 8. Re: replacement for ifNotBegunOutcome in @Conversational
                        Fumihiko Sugiyama Newbie

                        Hi,

                        Yeah, that didn't work.

                        But the following seems to work.

                        <page view-id="/offer*"
                         conversation-required="true"
                         no-conversation-view-id="/somepage.xhtml">
                        </page>