-
1. Re: Disable tab on client side
psteininger Aug 14, 2009 2:24 PM (in response to kalomo)I don't see a way to do this. Active and inactive tabs are rendered differently. (different HTML, JS and CSS). Also doing something like that goes against the component based approach, as it creates different state of UI in the browser than in the application.
I think you're better off keying the disabled property of the tab against some boolean bean property. Then a user action (via AJAX) can toggle that value and have it re-render the tab or tab panel.
Thanks,
Piotr -
2. Re: Disable tab on client side
kalomo Aug 17, 2009 3:42 AM (in response to kalomo)hi,
thanx for your answer.
Actually i do it the ajax way and everything works fine. But i thought i could save that ajax request becaue i found these lines in the "js-api additions" document.tabPanel, togglePanel setCurrent(id of the tab or name of the toggle facet) getCurrent() getPanelsNames TAB ONLY setDisabled(tab name, bool)
So maybe it is still possible to do it on client side? -
3. Re: Disable tab on client side
nbelaevski Aug 17, 2009 4:59 AM (in response to kalomo)Hi,
There's no such public API: http://docs.jboss.org/richfaces/latest_3_3_X/en/devguide/html/rich_tabPanel.html so it's still not possible. -
4. Re: Disable tab on client side
ainanmis May 25, 2011 9:47 AM (in response to nbelaevski)Hi,
I have a similiar problem. I am trying to make a tab enable, so I am rendering tabPanel. I want to render only disabled tab. Is it possible?