Tobago Components
Tag file


Renders a file input field. You need to define an org.apache.myfaces.tobago.webapp.TobagoMultipartFormdataFilter in your web.xml or add the tobago-fileupload.jar to your project. The tobago-fileupload.jar contains a FacesContextFactory that wraps the multipart-formdata request inside the facesContext.

UIComponentClass: org.apache.myfaces.tobago.component.UIFileInput

RendererType: File



Tag Information
Tag Classorg.apache.myfaces.tobago.taglib.component.FileTag
TagExtraInfo ClassNone
Body ContentJSP
Display NameNone

Attributes
NameRequiredRequest-timeTypeDescription
validatorfalsetruejava.lang.StringA method binding EL expression, accepting FacesContext, UIComponent, and Object parameters, and returning void, that validates the component's local value.
onchangefalsetruejava.lang.StringClientside script function to add to this component's onchange handler.
valueChangeListenerfalsetruejava.lang.StringMethodBinding 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.
idfalsetruejava.lang.StringThe component identifier for this component. This value must be unique within the closest parent component that is a naming container.
bindingfalsetruejava.lang.StringThe value binding expression linking this component to a property in a backing bean.
renderedfalsetruejava.lang.StringFlag indicating whether or not this component should be rendered (during Render Response Phase), or processed on any subsequent form submit.
disabledfalsetruejava.lang.StringFlag indicating that this element is disabled.
labelfalsetruejava.lang.StringText value to display as label. If text contains an underscore the next character is used as accesskey.
labelWithAccessKeyfalsetruejava.lang.String

**** @deprecated. Will be removed in a future version ****

Deprecated! Use 'label' instead. Text value to display as label. If text contains an underscore the next character overwrites 'accesskey'.
accessKeyfalsetruejava.lang.String

**** @deprecated. Will be removed in a future version ****

Deprecated! Has not longer any function.
tipfalsetruejava.lang.StringText value to display as tooltip.
readonlyfalsetruejava.lang.StringFlag indicating that this component will prohibit changes by the user.
requiredfalsetruejava.lang.StringFlag indicating that a value is required. If the value is an empty string a ValidationError occurs and a Error Message is rendered.
tabIndexfalsetruejava.lang.StringNo Description
valuefalsetruejava.lang.StringValue binding expression pointing to a org.apache.commons.fileupload.FileItem property to store the uploaded file.

Variables
No Variables Defined.


Output Generated by Tag Library Documentation Generator. Java, JSP, and JavaServer Pages are trademarks or registered trademarks of Sun Microsystems, Inc. in the US and other countries. Copyright 2002-4 Sun Microsystems, Inc. 4150 Network Circle Santa Clara, CA 95054, U.S.A. All Rights Reserved.