0 Replies Latest reply on Jun 9, 2010 5:57 AM by Heri Bender

    pageflow and HTTPS

    Heri Bender Newbie
      Hi
      I encounter a strange effect (Seam 2.2.0). I have defined a pageflow over only three pages. This pageflow starts at home.xhtml and must switch to HTTPS protocol for the first page.
      But the first page of the flow is still requested in HTTP, only the second and the third is in HTTPS, and the end page is home.xhtml again, which is as expected in HTTP. All three xxx.page.xml have the same scheme="https" attribute in the page tag.

      I start the pageflow by a menu item which calls an action handler:

          @Begin(pageflow="pfSelfRegistration")
          public String startConversation()
          {
              return "proceed";
          }

      The pageflow definition:

      <pageflow-definition
        name="pfSelfRegistration">

           <start-page name="StartPage" view-id="/home.xhtml">
                <transition name="proceed" to="InsertCardPage"></transition>
                <transition name="cancel" to="EndPage"></transition>
           </start-page>
           <page name="InsertCardPage" view-id="/SelfRegInsertCard.xhtml">
               <redirect/>
                <transition name="proceed" to="TokenKnownDecision"></transition>
                <transition name="cancel" to="EndPage"></transition>
           </page>
           <page name="CustomerInfoPage" view-id="/SelfRegCustomerInfo.xhtml">
               <redirect/>
                <transition name="proceed" to="SuccessPage"></transition>
                <transition name="cancel" to="EndPage"></transition>
           </page>
           <page name="ErrorPage" view-id="/SelfRegError.xhtml">
               <redirect/>
                <transition name="proceed" to="EndPage"></transition>
                <transition name="cancel" to="EndPage"></transition>
           </page>
           <page name="EndPage" view-id="/home.xhtml">
               <redirect/>
           </page>
           <decision name="TokenKnownDecision" expression="#{scSelfRegistration.checkTokenKnown}">
                <transition name="TokenKnown" to="MacOkDecision"></transition>
                <transition name="TokenUnknown" to="ErrorPage"></transition>
           </decision>
           <decision name="MacOkDecision" expression="#{scSelfRegistration.checkMAC}">
                <transition name="MacOK" to="CustomerInfoPage"></transition>
                <transition name="MacNOK" to="ErrorPage"></transition>
           </decision>
           <page name="SuccessPage" view-id="/SelfRegSuccess.xhtml">
               <redirect/>
                <transition name="proceed" to="EndPage"></transition>
                <transition name="cancel" to="EndPage"></transition>
           </page>
      </pageflow-definition>

      What to do that also the first view (/SelfRegInsertCard.xhtml) is transferred in HTTPS?

      BTW: Why must I provide a view-id in the start-page although the flow engine automatically transits to the InsertCardPage?

      Thks
      Heri