tabView displays all tabs at startup

UI Components for JSF
Post Reply
martijnhiemstra
Posts: 9
Joined: 04 Apr 2013, 15:48

11 Apr 2013, 10:39

I believe there is a bug in the TabView in Primefaces 3.5.

I have a tabView with 2 tabs and when the page is loaded all the tabs are shown. Once I click on a tab only that content is shown. I copied the code from the showcase into the page and the same behavior is there.

I analyzed the generated code and I noticed the following. Each tab is a div and has the following parameter aria-hidden="true". Should'n this be area-hidden="true". Is aria spelled correctly?

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

11 Apr 2013, 10:41

You probably have a custom theme downloaded from themeroller and you probably haven't unchecked the checkbox in themeroller that says deselect all widgets as documented in user's guide.

aria is not relevant.

martijnhiemstra
Posts: 9
Joined: 04 Apr 2013, 15:48

11 Apr 2013, 11:26

Do you mean the jquery UI themeroller? Because I have tried looking for the option you indicated however I couldn't find the option. Perhaps it has been removed in the lastest version of the themeroller?

Would you by any chance know what the css is to hide all the other options?

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

11 Apr 2013, 11:46

You need to remove widget related css like ui-tabs-*.

Here is theme.css from cupertino theme;

http://code.google.com/p/primefaces/sou ... /theme.css

Yours should be similar

martijnhiemstra
Posts: 9
Joined: 04 Apr 2013, 15:48

11 Apr 2013, 13:24

Fantastic. That did the trick. Thanks.

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 76 guests