Tabview - Style for specific Tab

UI Components for JSF
bitec
Posts: 44
Joined: 20 Jan 2011, 21:34
Location: Russia

28 Feb 2011, 10:56

Here is the workaround for 2.2.1:

Code: Select all

<script>
				jQuery(function() {				
						jQuery('a[href="#polisForm:calculatorTab"]:parent').addClass('calculatorTab');      
						jQuery('a[href="#polisForm:contractTab"]:parent').addClass('contractTab');      
				});
                </script>
I use the client tabs, not ajaxian, for ajaxian ones think the refresh of jquery scripts on each ajax request is necessary
JSF: Mojarra 2.1 | PrimeFaces 2.2.1 | Glassfish 3.1

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

28 Feb 2011, 12:10

This should be much easier :)

jQuery UI tabview, does not support styling a specific tab easily but we can add this feature by extending it as we do most of the time when we integrate with a third party widget.

We'll work on it to do specific tab styling using style/styleClass attributes of a tab.

See;

http://code.google.com/p/primefaces/iss ... ail?id=892

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

02 Jun 2011, 15:27

Tab component has titleStyle and titleStyleClass options now.

kgenovese
Posts: 5
Joined: 11 Sep 2014, 19:02

18 Jun 2015, 23:34

Was this ever implemented? I am unable to style unique tabs in tabView. I have tried both style and styleClass applied to <p:tab> but this still has no effect on generated html.

Thanks in advance for any insight.

Kris
PF 5.2, Spark
Mojarra 2.2.0
Tomcat v7.0
OSX 10.10.3
FF 39.0.5, Chrome 45

kukeltje
Expert Member
Posts: 9605
Joined: 17 Jun 2010, 13:34
Location: Netherlands

19 Jun 2015, 12:26

PrimeFaces 2.2.1 is not supported anymore. And for newer versions, check the documentation first. Is it in there? And please create a new topic

kgenovese
Posts: 5
Joined: 11 Sep 2014, 19:02

19 Jun 2015, 15:54

PF 5.2, Spark
Mojarra 2.2.0
Tomcat v7.0
OSX 10.10.3
FF 39.0.5, Chrome 45

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 27 guests