Class Hierarchy All Classes All Fields and Methods
Class com.ibm.faces.renderkit.html_extended.FileuploadRenderer
java.lang.Object javax.faces.render.Renderer com.sun.faces.renderkit.html_basic.HtmlBasicRenderer com.sun.faces.renderkit.html_basic.HtmlBasicInputRenderer com.ibm.faces.renderkit.html_extended.FileuploadRendererpublic class FileuploadRenderer
extends HtmlBasicInputRendererRenderer for UIFileupload component that creates an input field and a browse button.
Tags:
Components: UIFileupload
Constructor Index Constructor Description FileuploadRenderer()
Method Index Method Description void decode(FacesContext, UIComponent) Decodes the current state of the component. void encodeBegin(FacesContext, UIComponent) Renders the beginning of the component. void encodeChildren(FacesContext, UIComponent) Renders component's children. void encodeEnd(FacesContext, UIComponent) Renders the ending of the component. Object getConvertedValue(FacesContext, UIComponent, Object)
Constructors
FileuploadRenderer
public FileuploadRenderer()
Methods
decode
public void decode(FacesContext context, UIComponent component)Decodes the current state of the component.
Performs various checks of the data being uploaded to make sure it's valid.
Verifies data to be acceptable, based on accept and excludeattributes.
- Parameters
- context - FacesContext for the request we are processing
- component - UIComponent to be decoded.
- Throws
- IOException if an input/output error occurs while decoding
- Overrides
- decode in class HtmlBasicRenderer
- See Also
- decode
encodeBegin
public void encodeBegin(FacesContext context, UIComponent component) throws IOExceptionRenders the beginning of the component.
Doesn't need to do anything; all processing is done in encodeEnd.
- Parameters
- context - FacesContext for the request we are processing
- component - UIComponent to be rendered
- Throws
- IOException if an input/output error occurs while rendering
- Overrides
- encodeBegin in class Renderer
- See Also
- encodeBegin
encodeChildren
public void encodeChildren(FacesContext context, UIComponent component) throws IOExceptionRenders component's children.
Encodes nested (if any)UIFileProp components.
- Parameters
- context - FacesContext for the request being processed
- component - UIComponent to be rendered
- Throws
- IOException if an input/output error occurs while rendering
- Overrides
- encodeChildren in class Renderer
- See Also
- encodeBegin
encodeEnd
public void encodeEnd(FacesContext context, UIComponent component) throws IOExceptionRenders the ending of the component.
Renders the entire component.
Creates an INPUT tag with "file" type. Browsers render this as an text input field and a file browse button.
- Parameters
- context - FacesContext for the request we are processing
- component - UIComponent to be rendered
- Throws
- IOException if an input/output error occurs while rendering
- Overrides
- encodeEnd in class HtmlBasicRenderer
- See Also
- encodeEnd
getConvertedValue
public Object getConvertedValue(FacesContext context, UIComponent component, Object submittedValue) throws ConverterException
Class Hierarchy All Classes All Fields and Methods