• dynamic Content

    By Thomas Adrian 1 decade ago

    Hello, I have two questions regarding the dynamic content control.

     

    Question 1.

    I have created a dynamic content control and load custom controls based on the key value. In my custom control I have javascript libabries that should be loaded with the custom control, but hey do not seem to load. Have tried to add the javascript libraries both as a resurce and as a output script control or notmal script tag but nothing seem to work. is there a way to solve this? 

     

    Question 2.

    If I enter a hash name in the url that does not have a key in the dynamic content control there is an error produded. 

    is there anyway to avoid this error, or simply let it set the default hash if not found?

    !UIDynamicContent.Cannotfindthefacetnamed0intheDyna!
     

     

    Best Regards

    Thomas Adrian

    • Also,can't get iNotes Calender to work in cc

      By Thomas Adrian 1 decade ago

      Alos, when I try to load the iNotes Calendar within a custom control using the dynamic content it does not work.

      the calender is not displayed properly

       

      Thanks

      Thomas

    • Cannot reproduce

      By Philippe Riand 1 decade ago

      I tried to reproduce both issues but haven't been able to. Client and server side lib are properly loaded for me, and I'd like to understand the hash issue.

      Please attach a sample database that shows the issues.

      • Example database

        By Thomas Adrian 1 decade ago

        Example database show two custom controls loaded using dynamic content

        each custom control has it's own scriptlibrary which is not loaded dynamically

        I am running 8.5.3

         

        Using firebug you should see error when cliking the links

         

        /Thomas

         

         

         

         

         

        • This is a known issue

          By Philippe Riand 1 decade ago

           

          <p>
              Thanks for the db, Thomas.</p>
          <p>
              This is a known issue as the resources coming from the custom control are added to the page (viewRoot) but as only a partial refresh is rendered, they are not rendered. I looked at a possible fix in the extlib but it in fact require some fixes on core. We&#39;ll create an SPR for XPages core and see if we can fix it is a future release.</p>
          <p>
              By the meantime, you should simply add the resource to the page itself instead of within the control. On one hand, it breaks the isolation of the control as it depends on the page, but on the other hand it is performing better as the resources can be aggregated at the page level.</p>
          

  • thank you for the SPR

    By Thomas Adrian 1 decade ago

    thank you for the SPR

    • SPR#PHAN8QZC7D

      By Maire Kehoe 1 decade ago

      This issue was logged as

      SPR#PHAN8QZC7D Bundled resources in custom controls aren't loaded through the XPage

      The SPR is against the XPages runtime (not the Extlib). It is not yet fixed.