4 Replies Latest reply on Apr 27, 2007 9:56 AM by msduk

    Navigation conceptual question

    msduk

      This sort of situation crops up a lot of the time for me so I would be interested in the seam solution to this problem.

      I am in the middle of a long conversational process but midway need to view some details. I start a new converstion with nested=true so that the previous state is maintained. The page is then viewed and we can link back with another action that closes the top level conversation and pops the other one.

      So far so good. However the page I just viewed needs to be visited from three other pages and in each case i need to go back to that page.

      Is there a nice seam way to do this sort of thing?

      Thanks in advance

        • 1. Re: Navigation conceptual question
          dave.rogers

          I have been having this problem too. I need a nice clean way of returning to the page I have just left. I assumed that seam conversations would allow me to do this somehow.

          • 2. Re: Navigation conceptual question
            msduk

            In this case I decided that I could use a icefces modal dialogue... how very web 2.0.

            I would still like a nice way to do this however and I cant help but think seam has a solution. Passing parameters around is so old school ;0)

            • 3. Re: Navigation conceptual question
              denis-karpov

              Yes, I agree. It is very common situation.

              I also use nested conversations for this. You should end your nested conversation by java code.

              //@End
               public String cancel() {
               Conversation.instance().endAndRedirect(true);
               return null;
               }
              

              or
              //@End
               public String cancel() {
               Conversation.instance().end();
               Conversation.instance().redirectToParent();
               return null;
               }
              


              I am not sure for 100% for correctness of this code, but it works for me.

              • 4. Re: Navigation conceptual question
                msduk

                Thanks very much, I will give this go.