0 Replies Latest reply on Apr 11, 2010 8:14 PM by alex becker

    Login as nested Flow?

    alex becker Newbie

      I have a flow to create a webkatalogentry with multiple Sites.
      At the end of the creation the user should login or fill a registration form.
      my inserat.jpdl.xml:

        <decision name="endOrRegister" expression="#{identity.loggedIn}">
           <transition name="true" to="end">
               <action expression="#{inserierenWizardAction.save}" />
              <transition name="false" to="login"/>
         <page name="login" view-id="/login.xhtml" >
                <transition to="endOrRegister" />
          <page name="end" view-id="/katalog/inserieren/Complete.xhtml">

      my components.xml:

         <event type="org.jboss.seam.security.notLoggedIn">
            <action execute="#{redirect.captureCurrentView}"/>
         <event type="org.jboss.seam.security.loginSuccessful">
            <action execute="#{redirect.returnToCapturedView}"/>

      I will use the login.xhtml with multiple redirects after isLoggedIn.
      1. If the User click the menue "login" and fill all logininformation correct, i want to redirect to "/restrited/default.xhtml".
      2. If the User call a restrited Site direct (bookmark), seams security filter calls the loging and redirect after successfully login to the returnToCapturedView
      3. /my Question/Problem) The user create an katalogentry. At the end of this procedure i will call the login.xhtml or the registration.xhtml. After this, i want to redirect to the "/inseratComplete.xhmtl".

      Is it possible to set the {#redirect.returnToCapturedView} or the {#redirect.viewId(/inseratComplete)} inside of my inserat.jpdl.xml?