JSF TAB PROBLEM

Hi,

I am using Tabbed panes in JSF. I want to display the second tab and not the first tab when the page refreshes. How can I do that?

Thanks.

[161 byte] By [fandi_yacinea] at [2007-11-27 11:23:56]
# 1

Which component are you talking about?

BalusCa at 2007-7-29 15:54:55 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 2

this is the component i am using

<rich:tabPanel switchType="ajax" >

fandi_yacinea at 2007-7-29 15:54:55 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 3

no reply

fandi_yacinea at 2007-7-29 15:54:55 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 4

Sorry, I don't know that component.

But I can tell you that the tab state is generally maintained using Javascript. Run FireFox, install the Venkman Javascript Debugger extension and debug it to see when and where the state is saved. Then add a small script to change this state onload.

BalusCa at 2007-7-29 15:54:55 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 5

thanks i will try it now :)

fandi_yacinea at 2007-7-29 15:54:55 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 6

I should try asking that at the RichFaces forum first, before wasting time with hacking:

http://jboss.com/index.html?module=bb&op=viewforum&f=261

Maybe they knows a ready-to use solution or so :)

BalusCa at 2007-7-29 15:54:55 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 7

if you have the same problem

have a look at

http://jboss.com/index.html?module=bb&op=viewtopic&p=4068128#4068128

fandi_yacinea at 2007-7-29 15:54:55 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...