1

The carousel is showing up but is not autoplaying, here is the code <p:carousel autoPlayInterval="4000" effectDuration="2000" effect="fade" circular="true" var="var" value="#{mybean.topratedList}" numVisible="1" responsive="true" >

When I switch off the CombinedResourceHandler the carousel works again fine.

I'm using primefaces 5.3.7 and Omnifaces 2.4

Thanks in advance

Update:
This problem vanishes when I stop delegating PrimeFaces jQuery to CDN with Omnifaces like described here - removing from web.xml this code snippet
<context-param> <param-name>org.omnifaces.CDN_RESOURCE_HANDLER_URLS</param-name> <param-value>primefaces:jquery/jquery.js=http://code.jquery.com/jquery-1.11.4.min.js</param-value> </context-param>

Community
  • 1
  • 1
codyLine
  • 509
  • 2
  • 8
  • 26
  • You mean, you are using ``? Have you carefully followed the instructions in http://stackoverflow.com/q/23173639? In the case the carousel doesn't work, are you seeing any errors in JS console? That would be indicative that scripts responsible for `` are not properly deferred. – BalusC Nov 11 '16 at 07:40
  • Just updated my text above. In fact, I see an error in the console ´Uncaught ReferenceError: jQuery is not defined(…)´ which vanishes when I remove CDN. Strange because other components like Gmap and selectManyCheckbox were working fine. – codyLine Nov 11 '16 at 08:07
  • Yes I'm using `` and Omnifaces for long time and it is working properly. – codyLine Nov 14 '16 at 12:09

0 Answers0