I'm trying to figure out which tab is currently selected, from a managed bean. I don't quite understand the javadoc - what types I need to have in the managed bean for selectTab, or what the right mechanism is.