org.apache.myfaces.tobago.taglib.extension
Class FileExtensionTag

java.lang.Object
  extended by javax.servlet.jsp.tagext.TagSupport
      extended by javax.servlet.jsp.tagext.BodyTagSupport
          extended by org.apache.myfaces.tobago.taglib.extension.FileExtensionTag
All Implemented Interfaces:
java.io.Serializable, BodyTag, IterationTag, JspTag, Tag, BeanTagDeclaration, InputTagDeclaration, TobagoTagDeclaration, HasBinding, HasId, HasIdBindingAndRendered, HasLabel, HasLabelWidth, HasOnchange, HasTabIndex, HasTip, HasValidator, HasValue, HasValueChangeListener, IsDisabled, IsFocus, IsRendered, IsRequired

public class FileExtensionTag
extends BodyTagSupport
implements InputTagDeclaration, HasIdBindingAndRendered, IsDisabled, HasTip, HasLabel, HasLabelWidth, IsRequired

Renders a file input field with a label.

Short syntax of:

 <tc:panel>
   <f:facet name="layout">
     <tc:gridLayout columns="fixed;*"/>
   </f:facet>
   <tc:label value="#{label}" for="@auto"/>
   <tc:file value="#{value}">
     ...
   </tc:in>
 </tc:panel>
 

See Also:
Serialized Form

Field Summary
 
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.Tag
EVAL_BODY_INCLUDE, EVAL_PAGE, SKIP_BODY, SKIP_PAGE
 
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
 
Constructor Summary
FileExtensionTag()
           
 
Method Summary
 int doEndTag()
           
 int doStartTag()
           
 void release()
           
 void setBinding(java.lang.String binding)
          The value binding expression linking this component to a property in a backing bean.
 void setDisabled(java.lang.String disabled)
          Flag indicating that this element is disabled.
 void setFocus(java.lang.String focus)
          Flag indicating this component should recieve the focus.
 void setLabel(java.lang.String label)
          Text value to display as label.
 void setLabelWidth(java.lang.String labelWidth)
          The width for the label component.
 void setOnchange(java.lang.String onchange)
          Clientside script function to add to this component's onchange handler.
 void setRendered(java.lang.String rendered)
          Flag indicating whether or not this component should be rendered (during Render Response Phase), or processed on any subsequent form submit.
 void setRequired(java.lang.String required)
          Flag indicating that a value is required.
 void setTabIndex(java.lang.String tabIndex)
          Controls the navigation of the focus through the input controls on a page with the Tab-Key.
 void setTip(java.lang.String tip)
          Text value to display as tooltip.
 void setValidator(java.lang.String validator)
          A method binding EL expression, accepting FacesContext, UIComponent, and Object parameters, and returning void, that validates the component's local value.
 void setValue(java.lang.String value)
          The current value of this component.
 void setValueChangeListener(java.lang.String valueChangeListener)
          MethodBinding representing a value change listener method that will be notified when a new value has been set for this input component.
 
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, setId, 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
 
Methods inherited from interface org.apache.myfaces.tobago.taglib.decl.HasId
setId
 

Constructor Detail

FileExtensionTag

public FileExtensionTag()
Method Detail

doStartTag

public int doStartTag()
               throws JspException
Specified by:
doStartTag in interface Tag
Overrides:
doStartTag in class BodyTagSupport
Throws:
JspException

doEndTag

public int doEndTag()
             throws JspException
Specified by:
doEndTag in interface Tag
Overrides:
doEndTag in class BodyTagSupport
Throws:
JspException

release

public void release()
Specified by:
release in interface Tag
Overrides:
release in class BodyTagSupport

setLabel

public void setLabel(java.lang.String label)
Description copied from interface: HasLabel
Text value to display as label. If text contains an underscore the next character is used as accesskey.

Specified by:
setLabel in interface HasLabel

setValue

public void setValue(java.lang.String value)
Description copied from interface: HasValue
The current value of this component.

Specified by:
setValue in interface HasValue

setValueChangeListener

public void setValueChangeListener(java.lang.String valueChangeListener)
Description copied from interface: HasValueChangeListener
MethodBinding representing a value change listener method that will be notified when a new value has been set for this input component. The expression must evaluate to a public method that takes a ValueChangeEvent parameter, with a return type of void.

Specified by:
setValueChangeListener in interface HasValueChangeListener

setOnchange

public void setOnchange(java.lang.String onchange)
Description copied from interface: HasOnchange
Clientside script function to add to this component's onchange handler.

Specified by:
setOnchange in interface HasOnchange

setBinding

public void setBinding(java.lang.String binding)
Description copied from interface: HasBinding
The value binding expression linking this component to a property in a backing bean.

Warning: For the tobago extension library tx the binding differs from JSP and Facelets:

Specified by:
setBinding in interface HasBinding

setRendered

public void setRendered(java.lang.String rendered)
Description copied from interface: IsRendered
Flag indicating whether or not this component should be rendered (during Render Response Phase), or processed on any subsequent form submit.

Specified by:
setRendered in interface IsRendered

setValidator

public void setValidator(java.lang.String validator)
Description copied from interface: HasValidator
A method binding EL expression, accepting FacesContext, UIComponent, and Object parameters, and returning void, that validates the component's local value.

Specified by:
setValidator in interface HasValidator

setDisabled

public void setDisabled(java.lang.String disabled)
Description copied from interface: IsDisabled
Flag indicating that this element is disabled.

Specified by:
setDisabled in interface IsDisabled

setTip

public void setTip(java.lang.String tip)
Description copied from interface: HasTip
Text value to display as tooltip.

Specified by:
setTip in interface HasTip

setLabelWidth

public void setLabelWidth(java.lang.String labelWidth)
Description copied from interface: HasLabelWidth
The width for the label component. Default: 'fixed'. This value is used in the gridLayouts columns attribute. See gridLayout tag for valid values.

Specified by:
setLabelWidth in interface HasLabelWidth

setRequired

public void setRequired(java.lang.String required)
Description copied from interface: IsRequired
Flag indicating that a value is required. If the value is an empty string a ValidationError occurs and a Error Message is rendered.

Specified by:
setRequired in interface IsRequired

setTabIndex

public void setTabIndex(java.lang.String tabIndex)
Description copied from interface: HasTabIndex
Controls the navigation of the focus through the input controls on a page with the Tab-Key. The navigation starts from the element with the lowest tabIndex value to the element with the highest value. Elements that have identical tabIndex values should be navigated in the order they appear in the character stream Elements that are disabled or with a negative tabIndex do not participate in the tabbing order.

Specified by:
setTabIndex in interface HasTabIndex

setFocus

public void setFocus(java.lang.String focus)
Description copied from interface: IsFocus
Flag indicating this component should recieve the focus.

Specified by:
setFocus in interface IsFocus


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