Class TableSelectionHandlerTag

  • All Implemented Interfaces:
    ConditionalTag, PropertySupport, org.apache.commons.jelly.DynaTag, org.apache.commons.jelly.impl.BeanSource, org.apache.commons.jelly.Tag

    public class TableSelectionHandlerTag
    extends UseBeanBaseTag

    A tag handler class for defining selection handlers for a table component.

    With this tag a concrete implementation of the TableSelectionHandler interface can be specified that will be used for either renderer or editor components (depending on the value of the boolean editor attribute) of the associated table. The tag can appear in the body of a TableTag tag only.

    By extending UseBeanBaseTag the typical attributes for defining beans (class or ref) are supported. In addition the editor attribute defines, which TableSelectionHandler is to be set on the associated table:

    • a value of false (which is also the default value) indicates that the TableSelectionHandler for renderer components is to set.
    • a value of true in contrast will set the TableSelectionHandler for editor components.

    Version:
    $Id: TableSelectionHandlerTag.java 205 2012-01-29 18:29:57Z oheger $
    Author:
    Oliver Heger
    • Constructor Detail

      • TableSelectionHandlerTag

        public TableSelectionHandlerTag()
        Creates a new instance of TableSelectionHandlerTag.
    • Method Detail

      • passResults

        protected boolean passResults​(Object bean)
                               throws org.apache.commons.jelly.JellyTagException
        Passes the TableSelectionHandler created by this tag to the enclosing table tag. This implementation looks for the TableTag this tag is nested into. It then sets the corresponding handler. If this tag is not nested inside a TableTag and no var attribute is set, an exception will be thrown.
        Overrides:
        passResults in class UseBeanBaseTag
        Parameters:
        bean - the resulting bean
        Returns:
        a flag whether the bean could be passed to a target
        Throws:
        org.apache.commons.jelly.JellyTagException - if the tag is incorrectly used