javaserverfaces
  1. javaserverfaces
  2. JAVASERVERFACES-2016

Resources not loaded when using a dynamic ui:inlclude and rendered via ajax

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Works as designed
    • Affects Version/s: 2.1.0
    • Fix Version/s: 2.2.5
    • Component/s: facelets
    • Labels:
      None
    • Environment:

      Windows 7, JBoss AS 6, Richfaces 4.0.0 Final, JSF2

      Description

      I'm migrating my project from JSF 1.2 to JSF2.1 and I was using a <ui:include src="#

      {guiMB.viewID}

      " /> tag wrapped in a <a4j:outputPanel> tag (from RichFaces) and rendering the a4j:outputPanel via ajax. However in JSF2 this doesn't load the resources for the page i'm including.

      So anything i include dynamically like this doesn't have any of the styling or javascript that should be loaded with it.

      I have created a test project which demonstrates the issue so i'll attach for you to replicate the issue.

      1. 20120202-1529-i_mojarra_2016_reproducer.patch
        32 kB
        Ed Burns
      2. message.tiff
        118 kB
        Ed Burns

        Issue Links

          Activity

            People

            • Assignee:
              Manfred Riem
              Reporter:
              luciano_deriu
            • Votes:
              3 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: