8 Replies Latest reply on Feb 6, 2009 3:32 PM by wilczarz.wilczarz.gmail.com

    Parameters in pageflow

    mankal

      Hi,


      I'm trying to pass a parameter in a pageflow. What is the proper way to do that? I tried every way I could think of (with <f:param... in the view, <param... in page.xml, <param in pageflow.jpdl.xml, all together, ...) but none worked.


      Documentation also mentions nothing about parameters in pageflows.


      Any ideas?

        • 1. Re: Parameters in pageflow
          primax

          EL ?

          • 2. Re: Parameters in pageflow
            mankal

            What do you mean?


            Of course with EL. I put <f:param name="userID" value="#{userHome.instance.id}"/> in the view, same almost everywhere in the pageflow. The browserbar shows only the cid parameter after the redirect.


            What would be in general the correct way to propagate parameters in a pageflow?

            • 3. Re: Parameters in pageflow
              balazska

              I have a same problem when I use the navigation.xml.
              Eliminate this, and use page.xml for the navigation.

              • 4. Re: Parameters in pageflow
                mankal

                I don't have a navigation.xml.


                Could you post your code if you've got it working?


                And anyway, thanks for the reply...

                • 5. Re: Parameters in pageflow
                  balazska
                  <navigation>          
                  <rule if-outcome="xyz">
                  <redirect view-id="/pages/xxx/yyyy.xhtml">
                  <param name="did" value="#{did}" converterId="javax.faces.Long"
                       required="true" />
                  </redirect>
                  </rule>
                  </navigation>

                  By the navigation always use absolut urls, ex: /pages/xxx/yyyy.xhtml

                  I think, this is your problem. :)
                  • 6. Re: Parameters in pageflow
                    balazska
                    <blockquote>
                    _babazs babazs wrote on Dec 04, 2008 17:00:_<br/>

                    <navigation>             
                    <rule if-outcome="xyz">
                    <redirect view-id="/pages/xxx/yyyy.xhtml">
                    <param name="did" value="#{did}" converterId="javax.faces.Long"
                            required="true" />
                    </redirect>
                    </rule>
                    </navigation>

                    By the navigation always use full urls, ex: /pages/xxx/yyyy.xhtml

                    I think, this is your problem. :)
                    </blockquote>

                    Click HELP for text formatting instructions. Then edit this text and check the preview.
                    • 7. Re: Parameters in pageflow
                      mankal

                      Oh looks like a misunderstanding.


                      I was looking for a way to pass parameters from a jpdl pageflow definition.


                      But thanks ;-)

                      • 8. Re: Parameters in pageflow
                        wilczarz.wilczarz.gmail.com

                        Did you find solution for your problem? In my case parameter declared in pages.xml also isn't passed properly despite being attached as f:param to s:button triggering the action.