5 Replies Latest reply: Jan 28, 2013 6:10 AM by Steven Davelaar-Oracle RSS

    Using Dynamic Tabs in 11gR2 doesn't seem to work.

    lucbors
      Hi there,

      I'm trying to use the Dynamic Tabs Template in an ADF 11.1.2.3 application using JHeadstart 11.1.2.1.28.
      According to the developerguide section 9.3.1. (Enabling Dynamic Tabs) it should be rather easy to do this.

      Set PageTemplate to : /common/pageTemplates/JhsDynamicTabsPageTemplate
      Set datacontrolscope to : Isolated
      Set Default group Usage to : Region with Page Fragments.
      Set Default group Region Access to : Common UI Shell Page.

      I use facelets as viewtechnology.

      Generating the application works fine.
      Running the application results in an error at startup :

      Error 500--Internal Server Error
      java.io.FileNotFoundException: /common/regions/DynamicTabs.jsff Not Found in ExternalContext as a Resource

      The pagetemplate can't find the reference. The file is nowhere near /common/regions/DynamicTabs.jsff. I actually cannot find it at all.

      I can reproduce this behavior on two different workstations.
      All of the above works smoothly in 11gR1.
      I think it's a bug, at least it looks like it.

      What do you think ?

      Regards Luc
        • 1. Re: Using Dynamic Tabs in 11gR2 doesn't seem to work.
          Steven Davelaar-Oracle
          Luc,

          I cannot reproduce this. Are you using a custom version of the dynamic tabs template?
          If so, you also need to check the "Use Dynamic Tabs" checkbox at application level. Well, try it with this checkbox checked anyway.

          Can you also create a dummy HR project and see whether you have the same issue there?

          Steven Davelaar,
          JHeadstart team.
          • 2. Re: Using Dynamic Tabs in 11gR2 doesn't seem to work.
            lucbors
            Hi Steven,

            it is time for "Ripley's believe it or not" I guess....

            I am definitely able to reproduce the behavior.

            1) Create new ADF fusion webapp
            2) Create new ADF BC.
            2a) Connection = HR.
            2b) create EO, VO for Employees and Departments and also create default AM.

            No adjustments, everything default.

            3) Refresh Datacontrol palette to have new DC available
            4) Enable JHeadstart on ViewController project
            5) Create new Service Definition. Accept all the defaults.
            6) Go to application Definition and make the following adjustments
            6a) Set PageTemplate to : /common/pageTemplates/JhsDynamicTabsPageTemplate
            6b) Set datacontrolscope to : Isolated
            7) Apply, Save all and generate.

            During generation the /common/regions/DynamicTabs.jsff is not added to the project.
            Running the new application results in

            Error 500--Internal Server Error
            java.io.FileNotFoundException: /common/regions/DynamicTabs.jsff Not Found in ExternalContext as a Resource

            Versions :
            ADF 11.1.2.3
            JHeadstart 11.1.2.1.28
            Windows 7 64bit

            And I also have the OraFormsFaces extension installed. Could that be causing the problem ??
            I do not use it in this project, but the fact that it is there and that it is available as in the New gallery ....--> JHeadstart --> JHeadstart OFF Generator indicates that OFF does influence JHS in some way ?

            Regards
            Luc

            Edited by: lucbors on Jan 18, 2013 7:17 PM
            • 3. Re: Using Dynamic Tabs in 11gR2 doesn't seem to work.
              Steven Davelaar-Oracle
              Luc,

              Very unlikely that this is caused by OFF.
              Did you try with checking the "Use Dynamic Tabs" application-level checkbox?

              Can you send me your testcase?

              Steven Davelaar,
              JHeadstart team.
              • 4. Re: Using Dynamic Tabs in 11gR2 doesn't seem to work.
                lucbors
                Hi Steven,

                checking the "Use Dynamic Tabs" application-level checkbox does the trick.
                Weird behavior.
                According to the developerguide and the hint text in the application definition editor, this only needs to be checked when not using the JHeadstart template.

                Problem solved.

                Do you still want to look into this issue ?
                I can reporduce it, but now at least I have a workaround.

                Luc
                • 5. Re: Using Dynamic Tabs in 11gR2 doesn't seem to work.
                  Steven Davelaar-Oracle
                  Yes, please send me the testcase, it should work without this checkbox checked, as long as you use the default JHeadstart dynamic tabs page template.

                  Steven Davelaar,
                  JHeadstart Team.