Please specify the use-case more detailed step by step.
i have a list with possible records (in a rich:tab). to edit one of these records, i need a method to link to another tab and pass some vars like the record-id. is this kind of linking possible? and if the target-tabs are within another jsf-page?
1) to select a tab to be displayed - explore selectedTab attrivute. Use EL binding on the attribute.
2) to change the page - you just need to return navigation outcome from your action method.
3) to pass parameters to action like record-ids you need - use f:param as usual. Or you may try to use a4j:actionParam.
thx for your reply ilya_shaikovsky. cool shit ;-)
but unfortunately i'm a newbie, how can i realize the EL binding on the selectedTab attribute?
tabname property shoud be defined as the name of the tab that should be selected.
the tabs should provide in this case attribute name defined.
If i set the selectedTab attribute and rerender the tabPanel, it doesn't select the right tab.
I tried also to use and rerender a4j:outputPanel, but without success.
hm.. sorry but could you please check if you will perform this using simple h:command* component. will your code work?
No, it doesn't work. Could it be a bug in the tabPanel?
If I set the tab-name directly for the selectedTab attribute, it works. Changing this value dynamically doens't affect the tab selection.