Is there a way to change the active tab of a TabView using a Button (p:commandButton or h:commandButton) from outside the TabView? What I'm trying to implement is a panel in the top-right corner with some Buttons to control a few elements of the page. And one of them would be to change the TabView to a specific tab.
I tried using a p:commandButton which set an integer value in a backing bean to a specific value. the button contained the id of the tabview in it's "update" property. The TabView hat the activeIndex-attribute set to "#{backingBean.index}. But this didn't work out.
Is there any other way to accomplish that?
Change Active Tab of TabView
- kwintesencja
- Posts: 316
- Joined: 08 Feb 2010, 20:33
- Location: Brazil
Hello,
Whats the scope of your mbean? can you post a sample code so i can test here? cause it should work the way you're doing.
Whats the scope of your mbean? can you post a sample code so i can test here? cause it should work the way you're doing.
Att,
--
Rafael Mauricio Pestano
Primefaces 5.x + JavaEE7(Glassfish 4.x and Wildfly 8)
Conventions Framework
Blog
@realpestano
--
Rafael Mauricio Pestano
Primefaces 5.x + JavaEE7(Glassfish 4.x and Wildfly 8)
Conventions Framework
Blog
@realpestano
-
- Information
-
Who is online
Users browsing this forum: No registered users and 58 guests