Hello Helmut,

is the GenaTabChangeListener instance of TabChangeListener?

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

Regards

Bernd

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