Hi, Another solution could be to play with the "disclosed" attribute for each tab. In your backing bean you could have some variable that changes
<tr:panelTabbed> <tr:showDetailItem text="Tab 1" disclosed="#{myBackingBean.disclosedTab == 'myTab1'}"> ... </tr:showDetailItem> <tr:showDetailItem text="Tab 2" disclosed="#{myBackingBean.disclosedTab == 'myTab2'}"> ... </tr:showDetailItem> </tr:panelTabbed> Probably there are more elegant ways too, but that could do the trick, Bruno 2008/9/23 Leonardo Uribe <[EMAIL PROTECTED]>: > > > On Mon, Sep 22, 2008 at 5:59 PM, Amaris Nieves <[EMAIL PROTECTED]> > wrote: >> >> I want to be able to have a form inside one of the tabs of a >> <t:panelTabbedPane> and when a button is clicked the active tab changes to >> the next tab. How can I do this? >> Can have an example of how to achieve this? > > There is not a clean solution for this issue. It depends if you are using > client side or server side tab switch. > > on client side tab switch it renders something like this: > > <input type="submit" name="_idJsp0:panelTabbedPane1:_idJsp2.0" value="Tab1" > > onclick="return > myFaces_showPanelTab(0,'_idJsp0:panelTabbedPane1:_idJsp2_indexSubmit','_idJsp0:panelTabbedPane1:tab1_headerCell','_idJsp0:panelTabbedPane1:tab1.content',panelTabbedPane_5F_5FidJsp0_3ApanelTabbedPane1_3A_5FidJsp2_5FHeadersIDs,panelTabbedPane_5F_5FidJsp0_3ApanelTabbedPane1_3A_5FidJsp2_5FIDs,null,null,null,null);" > /> > > so call this java method should do the trick. but on server side tab switch > it is rendered like this: > > <input type="submit" name="_idJsp0:panelTabbedPane2:_idJsp37.0" value="Tab1" > /> > > You can render the same in other part to get the same effect. > > Maybe there are other alternatives (create a custom component that do the > previous is a more cleaner form.....), the previous one is ugly but works. > > regards > > Leonardo Uribe > >> >> Thank you. > >