Hello,

 

I had a working tab panel that looked normal.

However, after adding logic to save the tab state, the tabs now look like buttons.

Does any one know what could be going wrong here?

 

To manage tab state I’m using myfaces 20051114 nightly build and the following logic:

 

JSP FILE:

-----------

      <t:panelTabbedPane selectedIndex="#{controlGEM.manualTabPaneIndex}" serverSideTabSwitch="true">                             

                <t:tabChangeListener type="mam.web.gem.ControlGEM"/>

             …

      </t:panelTabbedPane>

 

mam.web.gem.ControlGEM Class:

-----------------------------------------

import org.apache.myfaces.custom.tabbedpane.TabChangeListener;

import org.apache.myfaces.custom.tabbedpane.TabChangeEvent;

import javax.faces.event.AbortProcessingException;

 

public class ControlGEM implements TabChangeListener

{

 …

  public void processTabChange(TabChangeEvent tabChangeEvent) throws AbortProcessingException

   {

      setManualTabPaneIndex(new Integer(tabChangeEvent.getNewTabIndex()));

   }

}

 

Again, the tab state logic appears to be working fine, except for the fact that the tabs now look like buttons.

 

Thanks for your help,

Rodney

 

Reply via email to