9 Replies Latest reply on Jun 7, 2013 2:55 PM by zenig

    DataScroller inside a Dynamic UI:Include

    zenig

      I am not able to get the rich:dataScroller to work when in a dynamic ui:include. The DataScroller renders fine, but it doesn't respond to any clicks. I checked the javascript console and there are no errors. If I hard-code the ui:include, then it works!

       

      If "data.xhtml" contains a rich:dataTable and a rich:dataScroller:

       

      The rich:dataScroller doesn't work:

       

      <a4j:outputPanel id="dataPanel">

           <ui:include src="#{controller.dataPage}" />

      </a4j:outputPanel>

       

       

      The rich:dataScroller works:

      <a4j:outputPanel id="dataPanel">

           <ui:include src="/data.xhtml" />

      </a4j:outputPanel>

       

      The panel is refreshed when clicking a a4j:commandButton on the page.

       

      I have tried wrapping everything in a h:form. I added a dummy datascroller in case javascript and other files weren't being rendered due to being dynamically included. I am not sure what else to try. It seems when via a dynamic include, something with the dataScroller is missing.

       

      I am using Richfaces 4.3.1.FINAL.

       

      Any ideas?