You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@myfaces.apache.org by "Roland Schaal (JIRA)" <de...@myfaces.apache.org> on 2006/03/27 13:58:50 UTC
[jira] Commented: (TOMAHAWK-216) TabChangeListener not invoked
[ http://issues.apache.org/jira/browse/TOMAHAWK-216?page=comments#action_12371962 ]
Roland Schaal commented on TOMAHAWK-216:
----------------------------------------
You did not use the serverSideTabSwitch in your example with that t:panelTabbedPane. I think, the TabChangeListener only works with the serverSideTabSwitch turned to 'true', doesn't it?
So with the latest nightly builds something like the following should work. At least for me...
<t:panelTabbedPane bgcolor="#FF0000" serverSideTabSwitch="true">
<t:panelTab id="tab01" label="Tab No.1">
<t:outputText value="something"></t:outputText>
</t:panelTab>
<t:panelTab id="tab02" label="Tab No.2">
<t:outputText value="something else"></t:outputText>
</t:panelTab>
<t:tabChangeListener type="test.TabChangeListenerImpl"/>
</t:panelTabbedPane>
> TabChangeListener not invoked
> -----------------------------
>
> Key: TOMAHAWK-216
> URL: http://issues.apache.org/jira/browse/TOMAHAWK-216
> Project: MyFaces Tomahawk
> Type: Bug
> Components: Tabbed Pane
> Versions: 1.1.1
> Environment: Windows XP, SP2, Tomcat 5.5, MyFaces 1.1.1 and MyFaces 1.1.2 (Snapshot from 2006-03-17)
> Reporter: Michael Bauschert
> Fix For: 1.1.1
>
> The TabChangeListener is initialized, but not called on TabChange. In the browser i see that there is no request sent to the server...
> ***********************************************
> The jsp-code:
> <t:panelTabbedPane bgcolor="#FF0000">
> <t:panelTab id="tab01" label="Tab No.1">
> <t:outputText value="something"></t:outputText>
> </t:panelTab>
> <t:panelTab id="tab02" label="Tab No.2">
> <t:outputText value="something else"></t:outputText>
> </t:panelTab>
> <t:tabChangeListener type="test.TabChangeListenerImpl"/>
> </t:panelTabbedPane>
> ***********************************************The Listener-Class
> package test;
> import javax.faces.event.AbortProcessingException;
> import org.apache.myfaces.custom.tabbedpane.TabChangeEvent;
> import org.apache.myfaces.custom.tabbedpane.TabChangeListener;
> public class TabChangeListenerImpl implements TabChangeListener {
> public TabChangeListenerImpl() {
> super();
> System.err.println("TabChangeListenerImpl.init");
> }
> public void processTabChange(TabChangeEvent arg0) throws AbortProcessingException
> {
> System.err.println("TabChangeListenerImpl.processTabChange");
> }
> }
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira