UITab isActive() method issue.

Solution Verified - Updated -

Issue

  • UITab isActive() method issue.

I am trying to find the active tab using the UITab isActive() method and it always returns the first tab regardless of which tab is selected. Please see attached files.

One thing to note is that if you define the TestController with session scope in faces-config.xml, isActive() returns the correct value. If it is defined with request scope, it always returns the first tab as the active tab.

Environment

  • JBoss Enterprise Application Platform (EAP) 5.1.1

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content