org.apache.myfaces.tobago.internal.taglib.extension
Class MenuRadioExtensionTag

java.lang.Object
  extended by javax.servlet.jsp.tagext.TagSupport
      extended by javax.servlet.jsp.tagext.BodyTagSupport
          extended by org.apache.myfaces.tobago.internal.taglib.extension.TobagoExtensionBodyTagSupport
              extended by org.apache.myfaces.tobago.internal.taglib.extension.MenuRadioExtensionTag
All Implemented Interfaces:
Serializable, javax.servlet.jsp.tagext.BodyTag, javax.servlet.jsp.tagext.IterationTag, javax.servlet.jsp.tagext.JspIdConsumer, javax.servlet.jsp.tagext.JspTag, javax.servlet.jsp.tagext.Tag

public class MenuRadioExtensionTag
extends TobagoExtensionBodyTagSupport

Renders menu items like radio buttons (select one).

 <tx:menuRadio>
   <tc:selectItems/> <!-- body -->
 </tx:menuRadio>
is the short form of
 <tc:menuCommand>
   <f:facet name="radio">
     <tc:selectOneRadio>
       <tc:selectItems/> <!-- body -->
     </tc:selectOneRadio>
   </f:facet>
 </tc:menuCommand>

See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.apache.myfaces.tobago.internal.taglib.extension.TobagoExtensionBodyTagSupport
PREFIX
 
Fields inherited from class javax.servlet.jsp.tagext.BodyTagSupport
bodyContent
 
Fields inherited from class javax.servlet.jsp.tagext.TagSupport
id, pageContext
 
Fields inherited from interface javax.servlet.jsp.tagext.BodyTag
EVAL_BODY_BUFFERED, EVAL_BODY_TAG
 
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
MenuRadioExtensionTag()
           
 
Method Summary
 int doEndTag()
           
 int doStartTag()
           
 void release()
           
 void setAction(javax.el.MethodExpression action)
          Action to invoke when clicked.
 void setActionListener(javax.el.MethodExpression actionListener)
          MethodBinding representing an action listener method that will be notified when this component is activated by the user.
 void setBinding(javax.el.ValueExpression binding)
          The value binding expression linking this component to a property in a backing bean.
 void setConverter(javax.el.ValueExpression converter)
          An expression that specifies the Converter for this component.
 void setDisabled(javax.el.ValueExpression disabled)
          Flag indicating that this element is disabled.
 void setFieldId(String fieldId)
          The component identifier for the input field component inside of the container.
 void setId(String id)
          The component identifier for this component.
 void setImmediate(javax.el.ValueExpression immediate)
          Flag indicating that, if this component is activated by the user, notifications should be delivered to interested listeners and actions immediately (that is, during Apply Request Values phase) rather than waiting until Invoke Application phase.
 void setLabel(javax.el.ValueExpression label)
          Text value to display as label.
 void setLink(javax.el.ValueExpression link)
          Link to an arbitrary URL
 void setOnclick(javax.el.ValueExpression onclick)
          Script to be invoked when clicked
 void setRendered(javax.el.ValueExpression rendered)
          Flag indicating whether or not this component should be rendered (during Render Response Phase), or processed on any subsequent form submit.
 void setRenderedPartially(javax.el.ValueExpression renderedPartially)
          Indicate the partially rendered Components in a case of a submit.
 void setTransition(javax.el.ValueExpression transition)
          Specify, if the command calls an JSF-Action.
 void setValue(javax.el.ValueExpression value)
          The current value of this component.
 
Methods inherited from class org.apache.myfaces.tobago.internal.taglib.extension.TobagoExtensionBodyTagSupport
createStringValueExpression, nextJspId, setJspId
 
Methods inherited from class javax.servlet.jsp.tagext.BodyTagSupport
doAfterBody, doInitBody, getBodyContent, getPreviousOut, setBodyContent
 
Methods inherited from class javax.servlet.jsp.tagext.TagSupport
findAncestorWithClass, getId, getParent, getValue, getValues, removeValue, setPageContext, setParent, setValue
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface javax.servlet.jsp.tagext.Tag
getParent, setPageContext, setParent
 

Constructor Detail

MenuRadioExtensionTag

public MenuRadioExtensionTag()
Method Detail

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.BodyTagSupport
Throws:
javax.servlet.jsp.JspException

doEndTag

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

release

public void release()
Specified by:
release in interface javax.servlet.jsp.tagext.Tag
Overrides:
release in class TobagoExtensionBodyTagSupport

setAction

public void setAction(javax.el.MethodExpression action)
Action to invoke when clicked. This must be a MethodBinding or a String representing the application action to invoke when this component is activated by the user. The MethodBinding must evaluate to a public method that takes no parameters, and returns a String (the logical outcome) which is passed to the NavigationHandler for this application. The String is directly passed to the Navigationhandler.


setActionListener

public void setActionListener(javax.el.MethodExpression actionListener)
MethodBinding representing an action listener method that will be notified when this component is activated by the user. The expression must evaluate to a public method that takes an ActionEvent parameter, with a return type of void.


setOnclick

public void setOnclick(javax.el.ValueExpression onclick)
Script to be invoked when clicked


setLink

public void setLink(javax.el.ValueExpression link)
Link to an arbitrary URL


setBinding

public void setBinding(javax.el.ValueExpression binding)
                throws javax.servlet.jsp.JspException
The value binding expression linking this component to a property in a backing bean.

Throws:
javax.servlet.jsp.JspException

setRendered

public void setRendered(javax.el.ValueExpression rendered)
Flag indicating whether or not this component should be rendered (during Render Response Phase), or processed on any subsequent form submit.


setDisabled

public void setDisabled(javax.el.ValueExpression disabled)
Flag indicating that this element is disabled.


setValue

public void setValue(javax.el.ValueExpression value)
The current value of this component.


setLabel

public void setLabel(javax.el.ValueExpression label)
Text value to display as label. If text contains an underscore the next character is used as accesskey.


setImmediate

public void setImmediate(javax.el.ValueExpression immediate)
Flag indicating that, if this component is activated by the user, notifications should be delivered to interested listeners and actions immediately (that is, during Apply Request Values phase) rather than waiting until Invoke Application phase.


setTransition

public void setTransition(javax.el.ValueExpression transition)
Specify, if the command calls an JSF-Action. Useful to switch off the Double-Submit-Check and Waiting-Behavior.

Parameters:
transition - Indicates the transition.

setConverter

public void setConverter(javax.el.ValueExpression converter)
An expression that specifies the Converter for this component. If the value binding expression is a String, the String is used as an ID to look up a Converter. If the value binding expression is a Converter, uses that instance as the converter. The value can either be a static value (ID case only) or an EL expression.


setRenderedPartially

public void setRenderedPartially(javax.el.ValueExpression renderedPartially)
Indicate the partially rendered Components in a case of a submit.


setFieldId

public void setFieldId(String fieldId)
The component identifier for the input field component inside of the container. This value must be unique within the closest parent component that is a naming container.


setId

public void setId(String id)
The component identifier for this component. This value must be unique within the closest parent component that is a naming container. For tx components the id will be set to the container (e. g. the panel). To set the id of the input field, you have to use the attribute "fieldId".

Overrides:
setId in class javax.servlet.jsp.tagext.TagSupport


Copyright © 2002-2014 The Apache Software Foundation. All Rights Reserved.