• Post Reply Bookmark Topic Watch Topic
  • New Topic

Want to stay on the same tab  RSS feed

 
merajzia zia
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Bartender
Posts: 18531
61
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!