4 Replies Latest reply on Dec 17, 2013 5:09 AM by markus_n

    How to troubleshoot navigation rules problems

    markus_n

      Hi,

       

      I have taken over a project formerly developed by someone else, and I have no way to contact the previous developer.

       

      After adding a command link, navigation rule etc. by duplicating and editing an existing (and working) one, I have no idea why the new ones has nearly no effect. When clicking on them, the current page just reloads instead of showing the new page. There is no exception and no log output.

       

      The only thing I have changed in the duplicated command link is the bean method name.

      The only thing I have changed in the duplicated navigation-cases are the from-outcome and the to-view-id.

      I have verified that my bean method is called, and I have no typo in the from-outcome and the to-view-id. And the to-view-id already exists in other navigation-cases and it works.

       

      Where should I begin to search for the cause of the problem ?

       

      I have omitted sample code because I am looking for a general approach how to troubleshoot this kind of problems.

       

      Thanks and Regards,

      Markus

        • 1. Re: How to troubleshoot navigation rules problems
          bleathem

          What version of JSF and RichFaces?  Are you using Seam?

          If it's for JSF 1.x make sure you've made the appropriate additions to the faces-config.xml file.

          • 2. Re: How to troubleshoot navigation rules problems
            markus_n

            Unfortunately, I am stuck in very old versions, because the customer won't pay for the effort I would need to put in an upgrade: I am using RichFaces 3.1.6 GA on top of MyFaces 1.1.9

             

            Yes, i have added a corresponding navigation rule in faces-config.xml file. I did this also by duplicating an existing one and editing the copy. To prevent typos in any IDs and keys, I always use the clipboard for them.

            • 3. Re: How to troubleshoot navigation rules problems
              bleathem

              Is your navigation element in an h:form?

              • 4. Re: How to troubleshoot navigation rules problems
                markus_n

                Yes.

                Maybe I should describe a bit more detailed what I did:

                 

                There was a group of command links in a <ul> ... </ul>. I duplicated and edited one of them. So, the new one is in the same h:form as the existing ones.

                Then I duplicated the navigation case in the faces-config.xml the same way.

                Then I created the corresponding bean method for the new command link.

                 

                As I wrote, I am always using the clipboard for IDs and keys, and return codes to prevent typos.