public class SelectOneMenuTag
extends jakarta.faces.webapp.UIComponentELTag
bodyContent, pageContext, UNIQUE_ID_PREFIXEVAL_BODY_INCLUDE, EVAL_PAGE, SKIP_BODY, SKIP_PAGE| Constructor and Description |
|---|
SelectOneMenuTag() |
| Modifier and Type | Method and Description |
|---|---|
int |
doEndTag()
Perform any processing necessary to handle the content implications of CASE 3 in the class description.
|
int |
doStartTag()
Perform any processing necessary to find (or create) the
UIComponent instance in the view corresponding to
this tag instance in the page and, if and only if a component was created, insert it into the tree at the proper
location as expected by the page author. |
String |
getComponentType()
Return the component type for the component that is or will be bound to this tag.
|
String |
getDebugString() |
String |
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. |
void |
release()
Release any resources allocated during the execution of this tag handler.
|
void |
setAccesskey(jakarta.el.ValueExpression accesskey) |
void |
setConverter(jakarta.el.ValueExpression converter) |
void |
setConverterMessage(jakarta.el.ValueExpression converterMessage) |
void |
setDir(jakarta.el.ValueExpression dir) |
void |
setDisabled(jakarta.el.ValueExpression disabled) |
void |
setDisabledClass(jakarta.el.ValueExpression disabledClass) |
void |
setEnabledClass(jakarta.el.ValueExpression enabledClass) |
void |
setHideNoSelectionOption(jakarta.el.ValueExpression hideNoSelectionOption) |
void |
setImmediate(jakarta.el.ValueExpression immediate) |
void |
setLabel(jakarta.el.ValueExpression label) |
void |
setLang(jakarta.el.ValueExpression lang) |
void |
setOnblur(jakarta.el.ValueExpression onblur) |
void |
setOnchange(jakarta.el.ValueExpression onchange) |
void |
setOnclick(jakarta.el.ValueExpression onclick) |
void |
setOndblclick(jakarta.el.ValueExpression ondblclick) |
void |
setOnfocus(jakarta.el.ValueExpression onfocus) |
void |
setOnkeydown(jakarta.el.ValueExpression onkeydown) |
void |
setOnkeypress(jakarta.el.ValueExpression onkeypress) |
void |
setOnkeyup(jakarta.el.ValueExpression onkeyup) |
void |
setOnmousedown(jakarta.el.ValueExpression onmousedown) |
void |
setOnmousemove(jakarta.el.ValueExpression onmousemove) |
void |
setOnmouseout(jakarta.el.ValueExpression onmouseout) |
void |
setOnmouseover(jakarta.el.ValueExpression onmouseover) |
void |
setOnmouseup(jakarta.el.ValueExpression onmouseup) |
void |
setOnselect(jakarta.el.ValueExpression onselect) |
protected void |
setProperties(jakarta.faces.component.UIComponent component)
Override properties and attributes of the specified component, if the corresponding properties of this tag handler
instance were explicitly set.
|
void |
setReadonly(jakarta.el.ValueExpression readonly) |
void |
setRequired(jakarta.el.ValueExpression required) |
void |
setRequiredMessage(jakarta.el.ValueExpression requiredMessage) |
void |
setRole(jakarta.el.ValueExpression role) |
void |
setStyle(jakarta.el.ValueExpression style) |
void |
setStyleClass(jakarta.el.ValueExpression styleClass) |
void |
setTabindex(jakarta.el.ValueExpression tabindex) |
void |
setTitle(jakarta.el.ValueExpression title) |
void |
setValidator(jakarta.el.MethodExpression validator) |
void |
setValidatorMessage(jakarta.el.ValueExpression validatorMessage) |
void |
setValue(jakarta.el.ValueExpression value) |
void |
setValueChangeListener(jakarta.el.MethodExpression valueChangeListener) |
createComponent, getELContext, hasBinding, setBinding, setRenderedaddChild, addFacet, addVerbatimAfterComponent, addVerbatimBeforeComponent, createVerbatimComponent, createVerbatimComponentFromBodyContent, doAfterBody, doInitBody, encodeBegin, encodeChildren, encodeEnd, findComponent, getBodyContent, getComponentInstance, getCreated, getCreatedComponents, getDoAfterBodyValue, getDoEndValue, getDoStartValue, getFacesContext, getFacesJspId, getFacetName, getId, getIndexOfNextChildTag, getJspId, getParent, getParentUIComponentClassicTagBase, getPreviousOut, setBodyContent, setId, setJspId, setPageContext, setParent, setupResponseWriterpublic void setConverter(jakarta.el.ValueExpression converter)
public void setConverterMessage(jakarta.el.ValueExpression converterMessage)
public void setImmediate(jakarta.el.ValueExpression immediate)
public void setRequired(jakarta.el.ValueExpression required)
public void setRequiredMessage(jakarta.el.ValueExpression requiredMessage)
public void setValidator(jakarta.el.MethodExpression validator)
public void setValidatorMessage(jakarta.el.ValueExpression validatorMessage)
public void setValue(jakarta.el.ValueExpression value)
public void setValueChangeListener(jakarta.el.MethodExpression valueChangeListener)
public void setAccesskey(jakarta.el.ValueExpression accesskey)
public void setDir(jakarta.el.ValueExpression dir)
public void setDisabled(jakarta.el.ValueExpression disabled)
public void setDisabledClass(jakarta.el.ValueExpression disabledClass)
public void setEnabledClass(jakarta.el.ValueExpression enabledClass)
public void setHideNoSelectionOption(jakarta.el.ValueExpression hideNoSelectionOption)
public void setLabel(jakarta.el.ValueExpression label)
public void setLang(jakarta.el.ValueExpression lang)
public void setOnblur(jakarta.el.ValueExpression onblur)
public void setOnchange(jakarta.el.ValueExpression onchange)
public void setOnclick(jakarta.el.ValueExpression onclick)
public void setOndblclick(jakarta.el.ValueExpression ondblclick)
public void setOnfocus(jakarta.el.ValueExpression onfocus)
public void setOnkeydown(jakarta.el.ValueExpression onkeydown)
public void setOnkeypress(jakarta.el.ValueExpression onkeypress)
public void setOnkeyup(jakarta.el.ValueExpression onkeyup)
public void setOnmousedown(jakarta.el.ValueExpression onmousedown)
public void setOnmousemove(jakarta.el.ValueExpression onmousemove)
public void setOnmouseout(jakarta.el.ValueExpression onmouseout)
public void setOnmouseover(jakarta.el.ValueExpression onmouseover)
public void setOnmouseup(jakarta.el.ValueExpression onmouseup)
public void setOnselect(jakarta.el.ValueExpression onselect)
public void setReadonly(jakarta.el.ValueExpression readonly)
public void setRole(jakarta.el.ValueExpression role)
public void setStyle(jakarta.el.ValueExpression style)
public void setStyleClass(jakarta.el.ValueExpression styleClass)
public void setTabindex(jakarta.el.ValueExpression tabindex)
public void setTitle(jakarta.el.ValueExpression title)
public String getRendererType()
jakarta.faces.webapp.UIComponentTagBase
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.
getRendererType in class jakarta.faces.webapp.UIComponentTagBasepublic String getComponentType()
jakarta.faces.webapp.UIComponentTagBase
Return the component type for the component that is or will be bound to this tag. This value can be passed to
Application.createComponent(java.lang.String) to create the UIComponent instance for this
tag. Subclasses must override this method to return the appropriate value.
getComponentType in class jakarta.faces.webapp.UIComponentTagBaseprotected void setProperties(jakarta.faces.component.UIComponent component)
jakarta.faces.webapp.UIComponentELTag
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.setProperties in class jakarta.faces.webapp.UIComponentELTagcomponent - UIComponent whose properties are to be overriddenpublic int doStartTag()
throws jakarta.servlet.jsp.JspException
jakarta.faces.webapp.UIComponentClassicTagBase
Perform any processing necessary to find (or create) the UIComponent instance in the view corresponding to
this tag instance in the page and, if and only if a component was created, insert it into the tree at the proper
location as expected by the page author. Secondarily, cause a transient UIOutput component to be created and
placed in the tree before the UIComponent instance for this tag. The value of this
UIOutput component must include anything covered by CASE 1 or CASE 2 in the
class description.
The default implementation, which is intended to be sufficient for most components, implements this secondary
requirement by calling UIComponentClassicTagBase.getParentUIComponentClassicTagBase(jakarta.servlet.jsp.PageContext), and calling
UIComponentClassicTagBase.createVerbatimComponentFromBodyContent() on the result. It then adds the returned component to the tree
before the actual component for this tag instance instance by calling
UIComponentClassicTagBase.addVerbatimBeforeComponent(jakarta.faces.webapp.UIComponentClassicTagBase, jakarta.faces.component.UIComponent, jakarta.faces.component.UIComponent).
Before returning, the component is pushed onto the component stack for this response to enable the
UIComponentClassicTagBase.getParentUIComponentClassicTagBase(jakarta.servlet.jsp.PageContext) method to work properly.
The flag value to be returned is acquired by calling the getDoStartValue() method, which tag subclasses
may override if they do not want the default value.
doStartTag in interface jakarta.servlet.jsp.tagext.TagdoStartTag in class jakarta.faces.webapp.UIComponentClassicTagBasejakarta.servlet.jsp.JspException - if an error occurspublic int doEndTag()
throws jakarta.servlet.jsp.JspException
jakarta.faces.webapp.UIComponentClassicTagBasePerform any processing necessary to handle the content implications of CASE 3 in the class description.
The default implementation, which is intended to be sufficient for most components, calls
UIComponentClassicTagBase.createVerbatimComponentFromBodyContent() on this instance and adds it as a child of the component for
this tag's component at the end of the child list. In addition, the following housekeeping steps are taken.
UIComponent the set of component ids of child components created by
UIComponentTag instances the last time this page was processed (if any). Compare it to the list of children
created during this page processing pass, and remove all children present in the old list but not the new. Save the
new list as a component attribute so that it gets saved as part of the component's state.UIComponent the set of facet names of facets created by UIComponentTag
instances the last time this page was processed (if any). Compare it to the list of facets created during this page
processing pass, and remove all facets present in the old list but not the new. Save the new list as a component
attribute so that it gets saved as part of the component's state.
The flag value to be returned is acquired by calling the getDoEndValue() method, which tag subclasses
may override if they do not want the default value.
doEndTag in interface jakarta.servlet.jsp.tagext.TagdoEndTag in class jakarta.faces.webapp.UIComponentClassicTagBasejakarta.servlet.jsp.JspException - if an error occurspublic void release()
jakarta.faces.webapp.UIComponentELTagRelease any resources allocated during the execution of this tag handler.
release in interface jakarta.servlet.jsp.tagext.Tagrelease in class jakarta.faces.webapp.UIComponentELTagpublic String getDebugString()
Copyright © 2010–2022 JBoss by Red Hat. All rights reserved.