Hello Bernd!

>
>is the GenaTabChangeListener instance of TabChangeListener?

Yes, of course.

public class GenaTabChangeListener implements TabChangeListener {

>With the binding attribute you can point directly to a managed bean.

Do you mean this binding attributte?

       binding="#{mainController.tabChangeListener}"/>

But setTabChangeListener() in my managed bean (mainController) is not 
called, when a new TabChangeListener instance is created. Only the first 
time.

Regards
Helmut

>
>H. Swaczinna wrote:
>> Hello,
>> 
>> I've set in my tabGroup a TabChangeListener
>> 
>>   <tc:tabGroup switchType="reloadPage"  
>>     binding="#{mainController.tabGroup}"
>>     state="#{mainController.selectedTab}">
>>     <tc:tabChangeListener 
>type="de.wlps.ndr.workflow.common.webapp.web.GenaTabChangeListener"
>>       binding="#{mainController.tabChangeListener}"/>
>> 
>> But every time the processTabChange() method is called, a new instance
>> of GenaTabChangeListener is created. And this instance is not set
>> via the binding in my backing bean. Even if I create the TabChangeListener 
>> in the getTabChangeListener() method, there's always a new one created. 
>> So the backing bean doesn't know the TabChangeListener and vice versa. 
>> How do I access the backing bean from a TabChangeListener? For example to 
>> store data entred in a tab when the user switches to another tab. Is it 
>> possible to declare the TabChangeListener as a managed bean in 
>> faces-config.xml?
>> 
>> Regards
>> Helmut
>>

Reply via email to