This week's book giveaway is in the Agile and other Processes forum.
We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund on-line!
See this thread for details.
The moose likes JSF and the fly likes Want to stay on the same tab  Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » JSF
Reply Bookmark "Want to stay on the same tab  " Watch "Want to stay on the same tab  " New topic
Author

Want to stay on the same tab

merajzia zia
Greenhorn

Joined: Oct 29, 2009
Posts: 1
Hi,
I am using 'rich:tabPanel' where i've defined few tabs 1,2,3. My problem is that when i am on say tab 2 or 3 and i do some action like submitting the form after the processing i am redirected to the 1st tab. If there is some error then also i'm redirected to the first tab. I'm returning empty string("") so that i remain on the same tab.

How to solve it?
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 14480
    
    7

Unless you tell it not to, it shouldn't be going back to the first tab, although I believe you need to hold the active tab index number in a session-scope property. Check the RichFaces manual.


Customer surveys are for companies who didn't pay proper attention to begin with.
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: Want to stay on the same tab
 
Similar Threads
Generate pdf file and display in a browser
JTable focus problem
Issue with the session object
unique session for every tabs of browser window
How to control browser launch functionality from java.