org.apache.myfaces.custom.tabbedpane
Class TabChangeListenerTag

java.lang.Object
  extended by javax.servlet.jsp.tagext.TagSupport
      extended by org.apache.myfaces.custom.tabbedpane.TabChangeListenerTag
All Implemented Interfaces:
Serializable, javax.servlet.jsp.tagext.IterationTag, javax.servlet.jsp.tagext.JspTag, javax.servlet.jsp.tagext.Tag

public class TabChangeListenerTag
extends javax.servlet.jsp.tagext.TagSupport

Adds a tab-change-listener to the enclosing t:panelTabbedPane component.

When the panelTabbedPane changes the displayed tab, the listener is invoked.

Version:
$Revision: 698966 $ $Date: 2008-09-25 08:41:35 -0500 (Thu, 25 Sep 2008) $
Author:
Oliver Rossmueller
See Also:
Serialized Form

Field Summary
 
Fields inherited from class javax.servlet.jsp.tagext.TagSupport
id, pageContext
 
Fields inherited from interface javax.servlet.jsp.tagext.IterationTag
EVAL_BODY_AGAIN
 
Fields inherited from interface javax.servlet.jsp.tagext.Tag
EVAL_BODY_INCLUDE, EVAL_PAGE, SKIP_BODY, SKIP_PAGE
 
Constructor Summary
TabChangeListenerTag()
           
 
Method Summary
 int doStartTag()
           
 void setType(String type)
          Define a listener to be attached to the parent HtmlPanelTabbedPane instance.
 
Methods inherited from class javax.servlet.jsp.tagext.TagSupport
doAfterBody, doEndTag, findAncestorWithClass, getId, getParent, getValue, getValues, release, removeValue, setId, setPageContext, setParent, setValue
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TabChangeListenerTag

public TabChangeListenerTag()
Method Detail

setType

public void setType(String type)
Define a listener to be attached to the parent HtmlPanelTabbedPane instance.

This attribute may be a literal string containing a fully-qualified class name. The specified class must implement the TabChangeListener interface and have a no-arguments constructor. A new instance will be created when the view is created.

This attribute may also be an EL expression that returns type String. The EL expression will be evaluated when the view is built, and the returned value must be a fully-qualified class name. The specified class must implement the TabChangeListener interface and have a no-arguments constructor. A new instance will be created when the view is created.

This attribute may also be an EL expression that returns a TabChangeListener instance.

It is an error if an EL expression returns an object of any type other than String or TabChangeListener.


doStartTag

public int doStartTag()
               throws javax.servlet.jsp.JspException
Specified by:
doStartTag in interface javax.servlet.jsp.tagext.Tag
Overrides:
doStartTag in class javax.servlet.jsp.tagext.TagSupport
Throws:
javax.servlet.jsp.JspException


Copyright © 2012 The Apache Software Foundation. All Rights Reserved.