4 Replies Latest reply on Nov 4, 2007 4:34 PM by pmuir

    Conversation Propogation on Redirect

    harpritt

      Hi People

      Im using in my navigation rules to avoid the dreaded "Web page has expired" page. redirects render urls with the appropriate cid parameter and allow my users to move forward and backwards using IE buttons

      HERES AN EXAMPLE URL

      http://localhost/CRSWebApp/CRForNewDoc_part2.seam?cid=14&clr=true


      ...i have one problem and thats Validation.

      if a user submits a form with validation errors the lovely URL gets rewritten without the cid parameter..... which means when the user tries navigating back to this page all he/she gets is "Web Page has expired"

      Validation example

      <h:inputText size="70" id="Document_Title" value="#{newGsmsData.documentTitle}" required="true">


      any ideas on how to retain the origional URL with the cid?

      As allways many thanks

      H

        • 1. Re: Conversation Propogation on Redirect
          harpritt

          what if i manually write the url for the submit to include the cid?

          .....

          • 2. Re: Conversation Propogation on Redirect
            pmuir

            I dont understand the question

            • 3. Re: Conversation Propogation on Redirect
              harpritt

              Hi Pete

              I fluffed my description... again.

              My navigation rules specify that Redirect(<redirect/ >) be used. The main reason for this is so that the client browser can maintain an accurate page history allowing my app users to use the browser forward and back buttons without running into any page has expired crap.

              this works really well apart from when a user hits a validation error..... in which case the the page is not arrived at via redirect but a forward... which screws up my browser history and also the way that users go back and forth using the IE buttons.

              I was wondering if there is a way to specifiy that validation use redirect rather than forward.

              Sorry if my description make less sence than my first post... ive had a few pints... lol.. arrggg .. not very profetional.

              As allways cheers for all help.

              H

              • 4. Re: Conversation Propogation on Redirect
                pmuir

                Simply, no.