JqueryUI and Tabs

UI Components for JSF
Post Reply
andyfinch
Posts: 44
Joined: 18 Jan 2011, 10:58

21 Oct 2014, 15:44

I need implement Jquery Tabs in my app and I've done this using a normal script src

Code: Select all

<script type="text/javascript" src="myLinkToJquery/jquery-ui.js"></script>
My question is will this conflict with any primefaces javascript. I believe all primefaces widgets are primefaces own so I assume it wont but would be grateful for confirmation.

Just to confirm that I don't want to use p:tabView as I need to init my tabs after a custom event.
Primefaces 5.1.9, Mojarra 2.0.9, Weblogic 10.3.6

tandraschko
PrimeFaces Core Developer
Posts: 3979
Joined: 03 Dec 2010, 14:11
Location: Bavaria, DE
Contact:

21 Oct 2014, 16:46

Maybe styles conflict as primefaces is still using "ui-" prefixed styles.
Try it ;)
Thomas Andraschko

PrimeFaces | PrimeFaces Extensions

Apache Member | OpenWebBeans, DeltaSpike, MyFaces, BVal, TomEE

Sponsor me: https://github.com/sponsors/tandraschko
Blog: http://tandraschko.blogspot.de/
Twitter: https://twitter.com/TAndraschko

andyfinch
Posts: 44
Joined: 18 Jan 2011, 10:58

22 Oct 2014, 10:55

Thanks for the reply. I have tried with no issues. I haven't included the jquery css so am using the primesfaces css by default which all looks good. My only worry was that some primefaces widget I haven't yet tested uses jqueryui and would cause a conflict.
Primefaces 5.1.9, Mojarra 2.0.9, Weblogic 10.3.6

cagatay.civici
Prime
Posts: 18616
Joined: 05 Jan 2009, 00:21
Location: Cybertron
Contact:

22 Oct 2014, 16:09

PF includes a subset of jQuery-UI, version depends on PF version for sure.

I'd suggest only adding tabs widget js to avoid conflicts.

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 31 guests