Top Fields Constructors Methods
com.sun.faces.taglib.html_basic

public Class SelectBooleanCheckboxTag

extends UIComponentELTag
Class Inheritance
Imports
com.sun.faces.util.Util, java.io.IOException, javax.el.*, javax.faces.*, javax.faces.component.*, javax.faces.context.*, javax.faces.convert.*, javax.faces.el.*, javax.faces.event.*, javax.faces.validator.*, javax.faces.webapp.*, javax.servlet.jsp.JspException

Field Summary

Modifier and TypeField and Description
private ValueExpression
private ValueExpression
private ValueExpression
private ValueExpression
private ValueExpression
private ValueExpression
private ValueExpression
private ValueExpression
private ValueExpression
private ValueExpression
private ValueExpression
private ValueExpression
private ValueExpression
private ValueExpression
private ValueExpression
private ValueExpression
private ValueExpression
private ValueExpression
private ValueExpression
private ValueExpression
private ValueExpression
private ValueExpression
private ValueExpression
private ValueExpression
private ValueExpression
private ValueExpression
private ValueExpression
private ValueExpression
private ValueExpression
private ValueExpression
private MethodExpression
private ValueExpression
private ValueExpression
private MethodExpression

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public int
doEndTag()

Overrides javax.faces.webapp.UIComponentClassicTagBase.doEndTag.

Implements javax.servlet.jsp.tagext.Tag.doEndTag.

Process the end tag for this instance.
public int
public String
getComponentType()

Implements abstract javax.faces.webapp.UIComponentTagBase.getComponentType.

Return the component type for the component that is or will be bound to this tag.

public String
public String
getRendererType()

Implements abstract javax.faces.webapp.UIComponentTagBase.getRendererType.

Return the rendererType property that selects the Renderer to be used for encoding this component, or null to ask the component to render itself directly.

public void
release()

Overrides javax.faces.webapp.UIComponentELTag.release.

Implements javax.servlet.jsp.tagext.Tag.release.

Release any resources allocated during the execution of this tag handler.

public void
public void
public void
public void
public void
public void
public void
public void
public void
public void
public void
public void
public void
public void
public void
public void
public void
public void
public void
public void
public void
public void
protected void
setProperties(UIComponent
UIComponent whose properties are to be overridden
component
)

Overrides javax.faces.webapp.UIComponentELTag.setProperties.

Override properties and attributes of the specified component, if the corresponding properties of this tag handler instance were explicitly set.

public void
public void
public void
public void
public void
public void
public void
public void
public void
public void
public void
public void
Inherited from javax.faces.webapp.UIComponentELTag:
createComponentgetELContexthasBindingsetBindingsetRendered

Field Detail

accesskeyback to summary
private ValueExpression accesskey
converterback to summary
private ValueExpression converter
converterMessageback to summary
private ValueExpression converterMessage
dirback to summary
private ValueExpression dir
disabledback to summary
private ValueExpression disabled
immediateback to summary
private ValueExpression immediate
labelback to summary
private ValueExpression label
langback to summary
private ValueExpression lang
onblurback to summary
private ValueExpression onblur
onchangeback to summary
private ValueExpression onchange
onclickback to summary
private ValueExpression onclick
ondblclickback to summary
private ValueExpression ondblclick
onfocusback to summary
private ValueExpression onfocus
onkeydownback to summary
private ValueExpression onkeydown
onkeypressback to summary
private ValueExpression onkeypress
onkeyupback to summary
private ValueExpression onkeyup
onmousedownback to summary
private ValueExpression onmousedown
onmousemoveback to summary
private ValueExpression onmousemove
onmouseoutback to summary
private ValueExpression onmouseout
onmouseoverback to summary
private ValueExpression onmouseover
onmouseupback to summary
private ValueExpression onmouseup
onselectback to summary
private ValueExpression onselect
readonlyback to summary
private ValueExpression readonly
requiredback to summary
private ValueExpression required
requiredMessageback to summary
private ValueExpression requiredMessage
roleback to summary
private ValueExpression role
styleback to summary
private ValueExpression style
styleClassback to summary
private ValueExpression styleClass
tabindexback to summary
private ValueExpression tabindex
titleback to summary
private ValueExpression title
validatorback to summary
private MethodExpression validator
validatorMessageback to summary
private ValueExpression validatorMessage
valueback to summary
private ValueExpression value
valueChangeListenerback to summary
private MethodExpression valueChangeListener

Constructor Detail

SelectBooleanCheckboxTagback to summary
public SelectBooleanCheckboxTag()

Method Detail

doEndTagback to summary
public int doEndTag() throws JspException

Overrides javax.faces.webapp.UIComponentClassicTagBase.doEndTag.

Implements javax.servlet.jsp.tagext.Tag.doEndTag.

Doc from javax.servlet.jsp.tagext.Tag.doEndTag.

Process the end tag for this instance. This method is invoked by the JSP page implementation object on all Tag handlers.

This method will be called after returning from doStartTag. The body of the action may or may not have been evaluated, depending on the return value of doStartTag.

If this method returns EVAL_PAGE, the rest of the page continues to be evaluated. If this method returns SKIP_PAGE, the rest of the page is not evaluated, the request is completed, and the doEndTag() methods of enclosing tags are not invoked. If this request was forwarded or included from another page (or Servlet), only the current page evaluation is stopped.

The JSP container will resynchronize the values of any AT_BEGIN and AT_END variables (defined by the associated TagExtraInfo or TLD) after the invocation of doEndTag().

Returns:int

indication of whether to continue evaluating the JSP page.

Exceptions
JspException:
if an error occurred while processing this tag
doStartTagback to summary
public int doStartTag() throws JspException

Overrides javax.faces.webapp.UIComponentClassicTagBase.doStartTag.

Implements javax.servlet.jsp.tagext.Tag.doStartTag.

Doc from javax.servlet.jsp.tagext.Tag.doStartTag.

Process the start tag for this instance. This method is invoked by the JSP page implementation object.

The doStartTag method assumes that the properties pageContext and parent have been set. It also assumes that any properties exposed as attributes have been set too. When this method is invoked, the body has not yet been evaluated.

This method returns Tag.EVAL_BODY_INCLUDE or BodyTag.EVAL_BODY_BUFFERED to indicate that the body of the action should be evaluated or SKIP_BODY to indicate otherwise.

When a Tag returns EVAL_BODY_INCLUDE the result of evaluating the body (if any) is included into the current "out" JspWriter as it happens and then doEndTag() is invoked.

BodyTag.EVAL_BODY_BUFFERED is only valid if the tag handler implements BodyTag.

The JSP container will resynchronize the values of any AT_BEGIN and NESTED variables (defined by the associated TagExtraInfo or TLD) after the invocation of doStartTag(), except for a tag handler implementing BodyTag whose doStartTag() method returns BodyTag.EVAL_BODY_BUFFERED.

Returns:int

EVAL_BODY_INCLUDE if the tag wants to process body, SKIP_BODY if it does not want to process it.

Exceptions
JspException:
if an error occurred while processing this tag
getComponentTypeback to summary
public String getComponentType()

Implements abstract javax.faces.webapp.UIComponentTagBase.getComponentType.

Doc from javax.faces.webapp.UIComponentTagBase.getComponentType.

Return the component type for the component that is or will be bound to this tag. This value can be passed to javax.faces.application.Application#createComponent to create the UIComponent instance for this tag. Subclasses must override this method to return the appropriate value.

Returns:String

the component type

getDebugStringback to summary
public String getDebugString()
getRendererTypeback to summary
public String getRendererType()

Implements abstract javax.faces.webapp.UIComponentTagBase.getRendererType.

Doc from javax.faces.webapp.UIComponentTagBase.getRendererType.

Return the rendererType property that selects the Renderer to be used for encoding this component, or null to ask the component to render itself directly. Subclasses must override this method to return the appropriate value.

Returns:String

the renderer type

releaseback to summary
public void release()

Overrides javax.faces.webapp.UIComponentELTag.release.

Implements javax.servlet.jsp.tagext.Tag.release.

Doc from javax.faces.webapp.UIComponentELTag.release.

Release any resources allocated during the execution of this tag handler.

setAccesskeyback to summary
public void setAccesskey(ValueExpression accesskey)
setConverterback to summary
public void setConverter(ValueExpression converter)
setConverterMessageback to summary
public void setConverterMessage(ValueExpression converterMessage)
setDirback to summary
public void setDir(ValueExpression dir)
setDisabledback to summary
public void setDisabled(ValueExpression disabled)
setImmediateback to summary
public void setImmediate(ValueExpression immediate)
setLabelback to summary
public void setLabel(ValueExpression label)
setLangback to summary
public void setLang(ValueExpression lang)
setOnblurback to summary
public void setOnblur(ValueExpression onblur)
setOnchangeback to summary
public void setOnchange(ValueExpression onchange)
setOnclickback to summary
public void setOnclick(ValueExpression onclick)
setOndblclickback to summary
public void setOndblclick(ValueExpression ondblclick)
setOnfocusback to summary
public void setOnfocus(ValueExpression onfocus)
setOnkeydownback to summary
public void setOnkeydown(ValueExpression onkeydown)
setOnkeypressback to summary
public void setOnkeypress(ValueExpression onkeypress)
setOnkeyupback to summary
public void setOnkeyup(ValueExpression onkeyup)
setOnmousedownback to summary
public void setOnmousedown(ValueExpression onmousedown)
setOnmousemoveback to summary
public void setOnmousemove(ValueExpression onmousemove)
setOnmouseoutback to summary
public void setOnmouseout(ValueExpression onmouseout)
setOnmouseoverback to summary
public void setOnmouseover(ValueExpression onmouseover)
setOnmouseupback to summary
public void setOnmouseup(ValueExpression onmouseup)
setOnselectback to summary
public void setOnselect(ValueExpression onselect)
setPropertiesback to summary
protected void setProperties(UIComponent component)

Overrides javax.faces.webapp.UIComponentELTag.setProperties.

Doc from javax.faces.webapp.UIComponentELTag.setProperties.

Override properties and attributes of the specified component, if the corresponding properties of this tag handler instance were explicitly set. This method must be called ONLY if the specified UIComponent was in fact created during the execution of this tag handler instance, and this call will occur BEFORE the UIComponent is added to the view.

Tag subclasses that want to support additional set properties must ensure that the base class setProperties() method is still called. A typical implementation that supports extra properties foo and bar would look something like this:

protected void setProperties(UIComponent component) {
  super.setProperties(component);
  if (foo != null) {
    component.setAttribute("foo", foo);
  }
  if (bar != null) {
    component.setAttribute("bar", bar);
  }
}

The default implementation overrides the following properties:

  • rendered - Set if a value for the rendered property is specified for this tag handler instance.
  • rendererType - Set if the getRendererType() method returns a non-null value.
Parameters
component:UIComponent

UIComponent whose properties are to be overridden

setReadonlyback to summary
public void setReadonly(ValueExpression readonly)
setRequiredback to summary
public void setRequired(ValueExpression required)
setRequiredMessageback to summary
public void setRequiredMessage(ValueExpression requiredMessage)
setRoleback to summary
public void setRole(ValueExpression role)
setStyleback to summary
public void setStyle(ValueExpression style)
setStyleClassback to summary
public void setStyleClass(ValueExpression styleClass)
setTabindexback to summary
public void setTabindex(ValueExpression tabindex)
setTitleback to summary
public void setTitle(ValueExpression title)
setValidatorback to summary
public void setValidator(MethodExpression validator)
setValidatorMessageback to summary
public void setValidatorMessage(ValueExpression validatorMessage)
setValueback to summary
public void setValue(ValueExpression value)
setValueChangeListenerback to summary
public void setValueChangeListener(MethodExpression valueChangeListener)