I've just looked at this again and my problem is caused by the duplicate javascript includes.
I have 2 portlets, they both include jQuery.js .
One portlet also includes a jquery plugin called jQuery.js
I then get this error:
1TypeError: jQuery("#mcarousel").jcarousel is not a function
I think what is happening is that the plugin is being applied to one jQuery object, but not the other. If I remove the portlet that doesn't use the carousel plugin then the carousel starts working.
I am using an older version of Primefaces, but I don't think that is really the issue. The carousel javascript is included via a ResourceDependency in a Component I've written, it just so happens that jquery is being included by Primefaces,. If I wasn't using primefaces and including jQuery via a ResourceDependency then this same error would occur if I used my component in 2 different portlets.
So going forward should this be handled by the bridge? My patch seems to work but I need to try it again with the latest release.
John
Be kell jelentkezni ahhoz, hogy ez helytelenként legyen megjelölve.