|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.faces.component.UIComponent
javax.faces.component.UIComponentBase
javax.faces.component.UIOutput
javax.faces.component.UIInput
com.sun.rave.web.ui.component.HiddenFieldBase
com.sun.rave.web.ui.component.HiddenField
com.sun.rave.web.ui.component.FieldBase
com.sun.rave.web.ui.component.Field
com.sun.rave.web.ui.component.UploadBase
com.sun.rave.web.ui.component.Upload
public class Upload
Use this component to allow web application users to upload a file.
If a web application uses this component, it must be configured to use
UploadFilter
| Field Summary | |
|---|---|
static java.lang.String |
FILE_SIZE_KEY
|
static java.lang.String |
INPUT_ID
A string concatenated with the component ID to form the ID and name of the HTML input element. |
static java.lang.String |
INPUT_PARAM_ID
|
static java.lang.String |
SCRIPT_FACET
|
static java.lang.String |
SCRIPT_ID
|
static java.lang.String |
TEXT_ID
|
static java.lang.String |
UPLOAD_ERROR_KEY
|
| Fields inherited from class com.sun.rave.web.ui.component.Field |
|---|
LABEL_FACET, LABEL_ID, READONLY_FACET, READONLY_ID |
| Fields inherited from class javax.faces.component.UIInput |
|---|
COMPONENT_FAMILY, COMPONENT_TYPE, CONVERSION_MESSAGE_ID, REQUIRED_MESSAGE_ID, UPDATE_MESSAGE_ID |
| Fields inherited from class javax.faces.component.UIComponent |
|---|
bindings |
| Constructor Summary | |
|---|---|
Upload()
Creates a new instance of Upload |
|
| Method Summary | |
|---|---|
int |
getColumns()
Number of character columns used to render this field. |
java.lang.Object |
getConvertedValue(javax.faces.context.FacesContext context,
java.lang.Object value)
Converts the submitted value. |
java.lang.String |
getPrimaryElementID(javax.faces.context.FacesContext context)
Retrieves the DOM ID for the HTML input element. |
java.lang.Object |
getText()
This method overrides getText() in Field. |
java.lang.String |
getType()
Overrides getType in the FileInput class, to always return "file" |
java.lang.String |
getValueAsString(javax.faces.context.FacesContext context)
Return the value to be rendered, as a String (converted if necessary), or null if the value is null. |
protected void |
log(java.lang.String s)
Log an error - only used during development time. |
void |
setText(java.lang.Object text)
This method overrides setText() in Field. |
| Methods inherited from class com.sun.rave.web.ui.component.UploadBase |
|---|
getFamily, getUploadedFile, getValueBinding, restoreState, saveState, setColumns, setUploadedFile, setValueBinding |
| Methods inherited from class com.sun.rave.web.ui.component.Field |
|---|
getLabelComponent, getReadOnlyComponent |
| Methods inherited from class com.sun.rave.web.ui.component.FieldBase |
|---|
getLabel, getLabelLevel, getMaxLength, getOnBlur, getOnChange, getOnClick, getOnDblClick, getOnFocus, getOnKeyDown, getOnKeyPress, getOnKeyUp, getOnMouseDown, getOnMouseMove, getOnMouseOut, getOnMouseOver, getOnMouseUp, getOnSelect, getStyle, getStyleClass, getTabIndex, getToolTip, isDisabled, isReadOnly, isTrim, isVisible, setDisabled, setLabel, setLabelLevel, setMaxLength, setOnBlur, setOnChange, setOnClick, setOnDblClick, setOnFocus, setOnKeyDown, setOnKeyPress, setOnKeyUp, setOnMouseDown, setOnMouseMove, setOnMouseOut, setOnMouseOver, setOnMouseUp, setOnSelect, setReadOnly, setStyle, setStyleClass, setTabIndex, setToolTip, setTrim, setVisible |
| Methods inherited from class com.sun.rave.web.ui.component.HiddenField |
|---|
getReadOnlyValueString |
| Methods inherited from class javax.faces.component.UIInput |
|---|
addValidator, addValueChangeListener, compareValues, decode, getConverterMessage, getRequiredMessage, getSubmittedValue, getValidator, getValidatorMessage, getValidators, getValueChangeListener, getValueChangeListeners, isImmediate, isLocalValueSet, isRequired, isValid, processDecodes, processUpdates, processValidators, removeValidator, removeValueChangeListener, resetValue, setConverterMessage, setImmediate, setLocalValueSet, setRequired, setRequiredMessage, setSubmittedValue, setValid, setValidator, setValidatorMessage, setValue, setValueChangeListener, updateModel, validate, validateValue |
| Methods inherited from class javax.faces.component.UIOutput |
|---|
getConverter, getLocalValue, getValue, setConverter |
| Methods inherited from class javax.faces.component.UIComponentBase |
|---|
addFacesListener, broadcast, encodeBegin, encodeChildren, encodeEnd, findComponent, getAttributes, getChildCount, getChildren, getClientId, getFacesContext, getFacesListeners, getFacet, getFacetCount, getFacets, getFacetsAndChildren, getId, getParent, getRenderer, getRendererType, getRendersChildren, invokeOnComponent, isRendered, isTransient, processRestoreState, processSaveState, queueEvent, removeFacesListener, restoreAttachedState, saveAttachedState, setId, setParent, setRendered, setRendererType, setTransient |
| Methods inherited from class javax.faces.component.UIComponent |
|---|
encodeAll, getContainerClientId, getValueExpression, setValueExpression |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface javax.faces.component.ValueHolder |
|---|
getConverter, getLocalValue, getValue, setConverter |
| Field Detail |
|---|
public static final java.lang.String INPUT_ID
public static final java.lang.String INPUT_PARAM_ID
public static final java.lang.String SCRIPT_ID
public static final java.lang.String SCRIPT_FACET
public static final java.lang.String TEXT_ID
public static final java.lang.String UPLOAD_ERROR_KEY
public static final java.lang.String FILE_SIZE_KEY
| Constructor Detail |
|---|
public Upload()
| Method Detail |
|---|
protected void log(java.lang.String s)
log in class Field
public java.lang.Object getConvertedValue(javax.faces.context.FacesContext context,
java.lang.Object value)
Converts the submitted value. Returns an object of type UploadedFile.
getConvertedValue in class HiddenFieldcontext - The FacesContextvalue - An object representing the submitted value
public java.lang.String getValueAsString(javax.faces.context.FacesContext context)
Return the value to be rendered, as a String (converted
if necessary), or null if the value is null.
getValueAsString in class HiddenFieldcontext - FacesContext for the current request
public java.lang.String getType()
public java.lang.Object getText()
getText in class FieldBasepublic void setText(java.lang.Object text)
setText in class FieldFieldBase.getText()public int getColumns()
UploadBaseNumber of character columns used to render this field.
getColumns in class UploadBasepublic java.lang.String getPrimaryElementID(javax.faces.context.FacesContext context)
getPrimaryElementID in interface ComplexComponentgetPrimaryElementID in class Fieldcontext - The FacesContext for the request
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||