You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@myfaces.apache.org by Volker Weber <v....@inexso.de> on 2012/03/28 14:09:12 UTC
Re: [tobago] Get how to change selected tab
Hi Armin,
first: please prefix the subject with "[tobago]" for tobago specific questions.
what did the Button do? If you set the tabId = 0 in the code, the
Tabgroup should render first tab. Didn't this work? which tobago
version?
Regards,
Volker
Am 28. März 2012 13:31 schrieb AM <gr...@gmail.com>:
> I have 3 Tabs in a tabGroup.
>
> When i am on the third tab and i click there on a button i want to go
> back to the first tab automatically.
>
> Code:
>
> <tc:tabGroup id="tabs" rendered="#{controller.anotherId != 0}"
> selectedIndex="#{controller.tabId}" >
>
> <tc:tab label="ABC">
> </tc:tab>
>
> <tc:tab label="DEF">
> </tc:tab>
>
> <tc:tab label="GHI">
> </tc:tab>
> </tc:tabGroup>
>
> in my java-code i have getter&setter for tabId.
> whith this solution, i have to click twice on the button to return to
> the first tab.
--
inexso - information exchange solutions GmbH
Ofener Str. 30 | 26121 Oldenburg
Tel.: +49 441 219 730 0 |
FAX: +49 441 219 730 66 | eMail: v.weber@inexso.de
Firmensitz: Oldenburg | Amtsgericht Oldenburg HRB 205251
Geschäftsführer: Stefan Schulte, Michael Terschüren
Re: [tobago] Get how to change selected tab
Posted by AM <gr...@gmail.com>.
i'm sorry.
version: 1.0.38
rendering isn't my problem. rendering works.
when i set selectedItem hard-coded to 0, it does not do anything!
the button uses a hibernate-session. to load data which i need for the tabs.
it should only jump every time when i click on the button back to the
first tab =/
thanks for your help!
2012/3/28 Volker Weber <v....@inexso.de>:
> Hi Armin,
>
> first: please prefix the subject with "[tobago]" for tobago specific questions.
>
> what did the Button do? If you set the tabId = 0 in the code, the
> Tabgroup should render first tab. Didn't this work? which tobago
> version?
>
>
> Regards,
> Volker
>
> Am 28. März 2012 13:31 schrieb AM <gr...@gmail.com>:
>> I have 3 Tabs in a tabGroup.
>>
>> When i am on the third tab and i click there on a button i want to go
>> back to the first tab automatically.
>>
>> Code:
>>
>> <tc:tabGroup id="tabs" rendered="#{controller.anotherId != 0}"
>> selectedIndex="#{controller.tabId}" >
>>
>> <tc:tab label="ABC">
>> </tc:tab>
>>
>> <tc:tab label="DEF">
>> </tc:tab>
>>
>> <tc:tab label="GHI">
>> </tc:tab>
>> </tc:tabGroup>
>>
>> in my java-code i have getter&setter for tabId.
>> whith this solution, i have to click twice on the button to return to
>> the first tab.
>
>
>
> --
> inexso - information exchange solutions GmbH
> Ofener Str. 30 | 26121 Oldenburg
> Tel.: +49 441 219 730 0 |
> FAX: +49 441 219 730 66 | eMail: v.weber@inexso.de
>
> Firmensitz: Oldenburg | Amtsgericht Oldenburg HRB 205251
> Geschäftsführer: Stefan Schulte, Michael Terschüren