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 of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.