-
1. Re: Links to rich:tab
ilya_shaikovsky Jul 10, 2007 12:29 PM (in response to ewfolf)Please specify the use-case more detailed step by step.
-
2. Re: Links to rich:tab
ewfolf Jul 10, 2007 6:17 PM (in response to ewfolf)okay..
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? -
3. Re: Links to rich:tab
ilya_shaikovsky Jul 11, 2007 2:07 AM (in response to ewfolf)ok..
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. -
4. Re: Links to rich:tab
ewfolf Jul 11, 2007 5:59 AM (in response to ewfolf)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? -
5. Re: Links to rich:tab
ilya_shaikovsky Jul 11, 2007 6:02 AM (in response to ewfolf)selectedTab="#{someBean.tabName}"
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. -
6. Re: Links to rich:tab
ewfolf Jul 12, 2007 9:30 AM (in response to ewfolf)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.
Any ideas? -
7. Re: Links to rich:tab
ilya_shaikovsky Jul 12, 2007 11:22 AM (in response to ewfolf)hm.. sorry but could you please check if you will perform this using simple h:command* component. will your code work?
-
8. Re: Links to rich:tab
ewfolf Jul 12, 2007 11:51 AM (in response to ewfolf)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. -
9. Re: Links to rich:tab
ewfolf Jul 13, 2007 6:09 AM (in response to ewfolf)http://jira.jboss.com/jira/browse/RF-188 has been solved.