5 Replies Latest reply on Nov 19, 2007 3:46 PM by pmuir

    Pagefrow - Redirect & Description

    enda

      In seam documentation is many various combinations of managing workspace.
      But it seem like there is not a combination that would allow to redirect in jPDL and to specify description together.

      There are examples where I can use pages.xml like this
      ====================================================
      <page view-id="/private/people/personHomeView.xhtml"
      conversation-required="true"
      no-conversation-view-id="/private/home.xhtml">
      Foo at #{bar.circle}

      ====================================================
      but this is completely ignored when I use pageflow jPDL!

      other alternative is to use jPDL
      ====================================================
      <page name="viewPersonHomeAjax"
      timeout="600000"
      view-id="/private/people/personHomeAjax.xhtml">

      View person home: #{person.username}



      ====================================================

      but then I cannot use redirect!

      this fails to deploy:
      ====================================================
      <page name="viewPersonHomeAjax"
      timeout="600000"
      view-id="/private/people/personHomeAjax.xhtml">


      View person home: #{person.username}



      ====================================================

      this is ignored at all (what is the purpose of that???):
      ====================================================
      <page name="viewPersonHomeAjax"
      timeout="600000"

      redirect="yes"

      view-id="/private/people/personHomeAjax.xhtml">


      View person home: #{person.username}



      ====================================================

      Maybe there is some magic combination but then it is not in documentation.
      Does anyone figure it out?

      Tomas

        • 1. Re: Pagefrow - Redirect & Description
          pmuir

          Try using code tags so we can read your post properly.

          • 2. Re: Pagefrow - Redirect & Description
            enda

            Here it is ;],
            so Pete now your answer ;)), thanks

            In seam documentation is many various combinations of managing workspace.
            But it seem like there is not a combination that would allow to redirect in jPDL and to specify description together.

            There are examples where I can use pages.xml like this
            ====================================================

            <page view-id="/private/people/personHomeView.xhtml"
             conversation-required="true"
             no-conversation-view-id="/private/home.xhtml">
             Foo at #{bar.circle}
            </page>
            

            ====================================================
            but this is completely ignored when I use pageflow jPDL!

            other alternative is to use jPDL
            ====================================================
            <page name="viewPersonHomeAjax"
             timeout="600000"
             view-id="/private/people/personHomeAjax.xhtml">
             <description>
             View person home: #{person.username}
             </description>
             <transition name="cancel" to="end"></transition>
            </page>
            


            ====================================================

            but then I cannot use redirect!

            this fails to deploy:
            ====================================================
            <page name="viewPersonHomeAjax"
             timeout="600000"
             view-id="/private/people/personHomeAjax.xhtml">
             <redirect/>
             <description>
             View person home: #{person.username}
             </description>
             <transition name="cancel" to="end"></transition>
            </page>
            

            ====================================================

            this is ignored at all (what is the purpose of that???):
            ====================================================
            <page name="viewPersonHomeAjax"
             timeout="600000"
             redirect="yes"
             view-id="/private/people/personHomeAjax.xhtml">
             <description>
             View person home: #{person.username}
             </description>
             <transition name="cancel" to="end"></transition>
            </page>
            



            ====================================================

            Maybe there is some magic combination but then it is not in documentation.
            Does anyone figure it out?

            Tomas

            • 3. Re: Pagefrow - Redirect & Description
              pmuir

              Ok, you were right, it was a bug in the xsd. I must have written it late at night or something ;)

              Anyway, I fixed the xsd in CVS. So, to make it deploy, just don't put a reference to namespace at the top until you update to a newer seam.

              • 4. Re: Pageflow - Redirect & Description
                enda

                Thanks, I felt little bit silly after you have rejected it ;).

                And what about the redirect="yes" attribute for a page in jPDL?
                what is its purpose? because it does not redirect neither?

                <page name="viewPersonHomeAjax"
                 timeout="600000"
                 redirect="yes"
                 view-id="/private/people/personHomeAjax.xhtml">
                 <description>
                 View person home: #{person.username}
                 </description>
                 <transition name="cancel" to="end"></transition>
                </page>
                


                • 5. Re: Pagefrow - Redirect & Description
                  pmuir

                  Another bug in the xsd (which i just fixed in cvs) - try redirect="true"