|
||||||||||
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
org.jboss.seam.ui.component.UIFileUpload
org.jboss.seam.ui.component.html.HtmlFileUpload
public class HtmlFileUpload
Component-Type org.jboss.seam.ui.FileUpload Component-Family org.jboss.seam.ui.FileUpload Renderer-Type org.jboss.seam.ui.FileUploadRenderer Renders a file upload control. This control must be used within a form with an encoding type of multipart/form-data, i.e: <h:form enctype="multipart/form-data"> For multipart requests, the Seam Multipart servlet filter must also be configured in web.xml: <filter> <filter-name>Seam Filter</filter-name> <filter-class>org.jboss.seam.servlet.SeamFilter</filter-class> </filter> <filter-mapping> <filter-name>Seam Filter</filter-name> <url-pattern>/*</url-pattern> </filter-mapping> The following configuration options for multipart requests may be configured in components.xml: createTempFiles - if this option is set to true, uploaded files are streamed to a temporary file instead of in memory. maxRequestSize - the maximum size of a file upload request, in bytes. Here's an example: <component class="org.jboss.seam.servlet.MultipartConfig"> <property name="createTempFiles">true</property> <property name="maxRequestSize">1000000</property> </component>
Field Summary | |
---|---|
static java.lang.String |
COMPONENT_FAMILY
|
static java.lang.String |
COMPONENT_TYPE
|
Fields inherited from class javax.faces.component.UIInput |
---|
CONVERSION_MESSAGE_ID, REQUIRED_MESSAGE_ID, UPDATE_MESSAGE_ID |
Fields inherited from class javax.faces.component.UIComponent |
---|
bindings |
Constructor Summary | |
---|---|
HtmlFileUpload()
Constructor to init default renderers |
Method Summary | |
---|---|
java.lang.String |
getAccept()
a comma-separated list of content types to accept, may not be supported by the browser. |
java.lang.String |
getAccesskey()
This attribute assigns an access key to an element. |
java.lang.String |
getAlign()
left|center|right|justify [CI] Deprecated. |
java.lang.String |
getAlt()
For a user agents that cannot display images, forms, or applets, this attribute specifies alternate text. |
java.lang.String |
getContentType()
the property to receive the contentType Getter for contentType |
java.lang.Object |
getData()
this value binding receives the file's content type (optional). |
java.lang.String |
getFamily()
|
java.lang.String |
getFileName()
this value binding receives the filename (optional). |
java.lang.Integer |
getFileSize()
this value binding receives the file size (optional). |
int |
getMaxlength()
When the type attribute has the value "text" or "password", this attribute specifies the maximum number of characters the user may enter. |
java.lang.String |
getOnblur()
HTML: script expression; the element lost the focus Getter for onblur |
java.lang.String |
getOnchange()
HTML: script expression; the element value was changed Getter for onchange |
java.lang.String |
getOnclick()
HTML: a script expression; a pointer button is clicked Getter for onclick |
java.lang.String |
getOndblclick()
HTML: a script expression; a pointer button is double-clicked Getter for ondblclick |
java.lang.String |
getOnfocus()
HTML: script expression; the element got the focus Getter for onfocus |
java.lang.String |
getOnkeydown()
HTML: a script expression; a key is pressed down Getter for onkeydown |
java.lang.String |
getOnkeypress()
HTML: a script expression; a key is pressed and released Getter for onkeypress |
java.lang.String |
getOnkeyup()
HTML: a script expression; a key is released Getter for onkeyup |
java.lang.String |
getOnmousedown()
HTML: script expression; a pointer button is pressed down Getter for onmousedown |
java.lang.String |
getOnmousemove()
HTML: a script expression; a pointer is moved within Getter for onmousemove |
java.lang.String |
getOnmouseout()
HTML: a script expression; a pointer is moved away Getter for onmouseout |
java.lang.String |
getOnmouseover()
HTML: a script expression; a pointer is moved onto Getter for onmouseover |
java.lang.String |
getOnmouseup()
HTML: script expression; a pointer button is released Getter for onmouseup |
java.lang.String |
getOnselect()
HTML: script expression; The onselect event occurs when a user selects some text in a text field. |
int |
getSize()
This attribute tells the user agent the initial width of the control. |
java.lang.String |
getStyle()
CSS style(s) is/are to be applied when this component is rendered Getter for style |
java.lang.String |
getStyleClass()
Corresponds to the HTML class attribute Getter for styleClass |
java.lang.String |
getTabindex()
This attribute specifies the position of the current element in the tabbing order for the current document. |
boolean |
isDisabled()
When set for a form control, this boolean attribute disables the control for user input Getter for disabled |
void |
restoreState(javax.faces.context.FacesContext context,
java.lang.Object state)
|
java.lang.Object |
saveState(javax.faces.context.FacesContext context)
|
void |
setAccept(java.lang.String __accept)
a comma-separated list of content types to accept, may not be supported by the browser. |
void |
setAccesskey(java.lang.String __accesskey)
This attribute assigns an access key to an element. |
void |
setAlign(java.lang.String __align)
left|center|right|justify [CI] Deprecated. |
void |
setAlt(java.lang.String __alt)
For a user agents that cannot display images, forms, or applets, this attribute specifies alternate text. |
void |
setContentType(java.lang.String __contentType)
the property to receive the contentType Setter for contentType |
void |
setData(java.lang.Object __data)
this value binding receives the file's content type (optional). |
void |
setDisabled(boolean __disabled)
When set for a form control, this boolean attribute disables the control for user input Setter for disabled |
void |
setFileName(java.lang.String __fileName)
this value binding receives the filename (optional). |
void |
setFileSize(java.lang.Integer __fileSize)
this value binding receives the file size (optional). |
void |
setMaxlength(int __maxlength)
When the type attribute has the value "text" or "password", this attribute specifies the maximum number of characters the user may enter. |
void |
setOnblur(java.lang.String __onblur)
HTML: script expression; the element lost the focus Setter for onblur |
void |
setOnchange(java.lang.String __onchange)
HTML: script expression; the element value was changed Setter for onchange |
void |
setOnclick(java.lang.String __onclick)
HTML: a script expression; a pointer button is clicked Setter for onclick |
void |
setOndblclick(java.lang.String __ondblclick)
HTML: a script expression; a pointer button is double-clicked Setter for ondblclick |
void |
setOnfocus(java.lang.String __onfocus)
HTML: script expression; the element got the focus Setter for onfocus |
void |
setOnkeydown(java.lang.String __onkeydown)
HTML: a script expression; a key is pressed down Setter for onkeydown |
void |
setOnkeypress(java.lang.String __onkeypress)
HTML: a script expression; a key is pressed and released Setter for onkeypress |
void |
setOnkeyup(java.lang.String __onkeyup)
HTML: a script expression; a key is released Setter for onkeyup |
void |
setOnmousedown(java.lang.String __onmousedown)
HTML: script expression; a pointer button is pressed down Setter for onmousedown |
void |
setOnmousemove(java.lang.String __onmousemove)
HTML: a script expression; a pointer is moved within Setter for onmousemove |
void |
setOnmouseout(java.lang.String __onmouseout)
HTML: a script expression; a pointer is moved away Setter for onmouseout |
void |
setOnmouseover(java.lang.String __onmouseover)
HTML: a script expression; a pointer is moved onto Setter for onmouseover |
void |
setOnmouseup(java.lang.String __onmouseup)
HTML: script expression; a pointer button is released Setter for onmouseup |
void |
setOnselect(java.lang.String __onselect)
HTML: script expression; The onselect event occurs when a user selects some text in a text field. |
void |
setSize(int __size)
This attribute tells the user agent the initial width of the control. |
void |
setStyle(java.lang.String __style)
CSS style(s) is/are to be applied when this component is rendered Setter for style |
void |
setStyleClass(java.lang.String __styleClass)
Corresponds to the HTML class attribute Setter for styleClass |
void |
setTabindex(java.lang.String __tabindex)
This attribute specifies the position of the current element in the tabbing order for the current document. |
Methods inherited from class org.jboss.seam.ui.component.UIFileUpload |
---|
getLocalContentType, getLocalFileName, getLocalFileSize, getLocalInputStream, processUpdates, setLocalContentType, setLocalFileName, setLocalFileSize, setLocalInputStream |
Methods inherited from class javax.faces.component.UIInput |
---|
addValidator, addValueChangeListener, compareValues, decode, getConvertedValue, getConverterMessage, getRequiredMessage, getSubmittedValue, getValidator, getValidatorMessage, getValidators, getValueChangeListener, getValueChangeListeners, isImmediate, isLocalValueSet, isRequired, isValid, processDecodes, 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, getValueBinding, invokeOnComponent, isRendered, isTransient, processRestoreState, processSaveState, queueEvent, removeFacesListener, restoreAttachedState, saveAttachedState, setId, setParent, setRendered, setRendererType, setTransient, setValueBinding |
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 COMPONENT_TYPE
public static final java.lang.String COMPONENT_FAMILY
Constructor Detail |
---|
public HtmlFileUpload()
Method Detail |
---|
public void setAccept(java.lang.String __accept)
setAccept
in class UIFileUpload
accept
- - new valuepublic java.lang.String getAccept()
getAccept
in class UIFileUpload
public void setAccesskey(java.lang.String __accesskey)
accesskey
- - new valuepublic java.lang.String getAccesskey()
public void setAlign(java.lang.String __align)
align
- - new valuepublic java.lang.String getAlign()
public void setAlt(java.lang.String __alt)
alt
- - new valuepublic java.lang.String getAlt()
public void setContentType(java.lang.String __contentType)
contentType
- - new valuepublic java.lang.String getContentType()
public void setData(java.lang.Object __data)
data
- - new valuepublic java.lang.Object getData()
public void setDisabled(boolean __disabled)
disabled
- - new valuepublic boolean isDisabled()
public void setFileName(java.lang.String __fileName)
fileName
- - new valuepublic java.lang.String getFileName()
public void setFileSize(java.lang.Integer __fileSize)
fileSize
- - new valuepublic java.lang.Integer getFileSize()
public void setMaxlength(int __maxlength)
maxlength
- - new valuepublic int getMaxlength()
public void setOnblur(java.lang.String __onblur)
onblur
- - new valuepublic java.lang.String getOnblur()
public void setOnchange(java.lang.String __onchange)
onchange
- - new valuepublic java.lang.String getOnchange()
public void setOnclick(java.lang.String __onclick)
onclick
- - new valuepublic java.lang.String getOnclick()
public void setOndblclick(java.lang.String __ondblclick)
ondblclick
- - new valuepublic java.lang.String getOndblclick()
public void setOnfocus(java.lang.String __onfocus)
onfocus
- - new valuepublic java.lang.String getOnfocus()
public void setOnkeydown(java.lang.String __onkeydown)
onkeydown
- - new valuepublic java.lang.String getOnkeydown()
public void setOnkeypress(java.lang.String __onkeypress)
onkeypress
- - new valuepublic java.lang.String getOnkeypress()
public void setOnkeyup(java.lang.String __onkeyup)
onkeyup
- - new valuepublic java.lang.String getOnkeyup()
public void setOnmousedown(java.lang.String __onmousedown)
onmousedown
- - new valuepublic java.lang.String getOnmousedown()
public void setOnmousemove(java.lang.String __onmousemove)
onmousemove
- - new valuepublic java.lang.String getOnmousemove()
public void setOnmouseout(java.lang.String __onmouseout)
onmouseout
- - new valuepublic java.lang.String getOnmouseout()
public void setOnmouseover(java.lang.String __onmouseover)
onmouseover
- - new valuepublic java.lang.String getOnmouseover()
public void setOnmouseup(java.lang.String __onmouseup)
onmouseup
- - new valuepublic java.lang.String getOnmouseup()
public void setOnselect(java.lang.String __onselect)
onselect
- - new valuepublic java.lang.String getOnselect()
public void setSize(int __size)
size
- - new valuepublic int getSize()
public void setStyle(java.lang.String __style)
setStyle
in class UIFileUpload
style
- - new valuepublic java.lang.String getStyle()
getStyle
in class UIFileUpload
public void setStyleClass(java.lang.String __styleClass)
setStyleClass
in class UIFileUpload
styleClass
- - new valuepublic java.lang.String getStyleClass()
getStyleClass
in class UIFileUpload
public void setTabindex(java.lang.String __tabindex)
tabindex
- - new valuepublic java.lang.String getTabindex()
public java.lang.String getFamily()
getFamily
in class javax.faces.component.UIInput
public java.lang.Object saveState(javax.faces.context.FacesContext context)
saveState
in interface javax.faces.component.StateHolder
saveState
in class javax.faces.component.UIInput
public void restoreState(javax.faces.context.FacesContext context, java.lang.Object state)
restoreState
in interface javax.faces.component.StateHolder
restoreState
in class javax.faces.component.UIInput
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |