Class BaseComponentTag

  • All Implemented Interfaces:
    javax.servlet.jsp.tagext.JspTag, javax.servlet.jsp.tagext.Tag
    Direct Known Subclasses:
    WebScriptTag

    public abstract class BaseComponentTag
    extends javax.faces.webapp.UIComponentTag
    Author:
    Kevin Roast
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected static java.lang.Class[] ACTION_CLASS_ARGS  
      • Fields inherited from class javax.faces.webapp.UIComponentTag

        pageContext
      • Fields inherited from interface javax.servlet.jsp.tagext.Tag

        EVAL_BODY_INCLUDE, EVAL_PAGE, SKIP_BODY, SKIP_PAGE
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected void setActionListenerProperty​(javax.faces.component.UICommand command, java.lang.String actionListener)
      Helper to set an action listener property into a command component
      protected void setActionProperty​(javax.faces.component.UICommand command, java.lang.String action)
      Helper to set an action property into a command component
      protected void setBooleanProperty​(javax.faces.component.UIComponent component, java.lang.String name, java.lang.String value)
      Helper method to set a String property as an Boolean value into the component.
      protected void setBooleanStaticProperty​(javax.faces.component.UIComponent component, java.lang.String name, java.lang.String value)  
      protected void setIntProperty​(javax.faces.component.UIComponent component, java.lang.String name, java.lang.String value)
      Helper method to set a String property as an Integer value into the component.
      protected void setIntStaticProperty​(javax.faces.component.UIComponent component, java.lang.String name, java.lang.String value)  
      protected void setStringBindingProperty​(javax.faces.component.UIComponent component, java.lang.String name, java.lang.String value)
      Helper method to set a String value property into the component.
      protected void setStringProperty​(javax.faces.component.UIComponent component, java.lang.String name, java.lang.String value)
      Helper method to set a String property value into the component.
      protected void setStringStaticProperty​(javax.faces.component.UIComponent component, java.lang.String name, java.lang.String value)
      Helper method to set a static String property into the component.
      • Methods inherited from class javax.faces.webapp.UIComponentTag

        doEndTag, doStartTag, encodeBegin, encodeChildren, encodeEnd, findComponent, getComponentInstance, getComponentType, getCreated, getDoEndValue, getDoStartValue, getFacesContext, getFacetName, getId, getParent, getParentUIComponentTag, getRendererType, isSuppressed, isValueReference, release, setBinding, setId, setPageContext, setParent, setProperties, setRendered, setupResponseWriter
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • ACTION_CLASS_ARGS

        protected static final java.lang.Class[] ACTION_CLASS_ARGS
    • Constructor Detail

      • BaseComponentTag

        public BaseComponentTag()
    • Method Detail

      • setActionProperty

        protected void setActionProperty​(javax.faces.component.UICommand command,
                                         java.lang.String action)
        Helper to set an action property into a command component
        Parameters:
        command - Command component
        action - The action method binding or outcome to set
      • setActionListenerProperty

        protected void setActionListenerProperty​(javax.faces.component.UICommand command,
                                                 java.lang.String actionListener)
        Helper to set an action listener property into a command component
        Parameters:
        command - Command component
        actionListener - Action listener method binding
      • setStringProperty

        protected void setStringProperty​(javax.faces.component.UIComponent component,
                                         java.lang.String name,
                                         java.lang.String value)
        Helper method to set a String property value into the component. Respects the possibility that the property value is a Value Binding.
        Parameters:
        component - UIComponent
        name - property string name
        value - property string value
      • setStringBindingProperty

        protected void setStringBindingProperty​(javax.faces.component.UIComponent component,
                                                java.lang.String name,
                                                java.lang.String value)
        Helper method to set a String value property into the component. Assumes the that the property value can only be a Value Binding.
        Parameters:
        component - UIComponent
        name - property string name
        value - property string value binding
      • setStringStaticProperty

        protected void setStringStaticProperty​(javax.faces.component.UIComponent component,
                                               java.lang.String name,
                                               java.lang.String value)
        Helper method to set a static String property into the component. Assumes the that the property value can only be a static string value.
        Parameters:
        component - UIComponent
        name - property string name
        value - property string static value
      • setIntProperty

        protected void setIntProperty​(javax.faces.component.UIComponent component,
                                      java.lang.String name,
                                      java.lang.String value)
        Helper method to set a String property as an Integer value into the component. Respects the possibility that the property value is a Value Binding.
        Parameters:
        component - UIComponent
        name - property string name
        value - property string value (an Integer will be created)
      • setIntStaticProperty

        protected void setIntStaticProperty​(javax.faces.component.UIComponent component,
                                            java.lang.String name,
                                            java.lang.String value)
      • setBooleanProperty

        protected void setBooleanProperty​(javax.faces.component.UIComponent component,
                                          java.lang.String name,
                                          java.lang.String value)
        Helper method to set a String property as an Boolean value into the component. Respects the possibility that the property value is a Value Binding.
        Parameters:
        component - UIComponent
        name - property string name
        value - property string value (a Boolean will be created)
      • setBooleanStaticProperty

        protected void setBooleanStaticProperty​(javax.faces.component.UIComponent component,
                                                java.lang.String name,
                                                java.lang.String value)