org.apache.myfaces.custom.fileupload
Class HtmlFileUploadRenderer
java.lang.Object
   javax.faces.render.Renderer
javax.faces.render.Renderer
       org.apache.myfaces.shared_tomahawk.renderkit.html.HtmlRenderer
org.apache.myfaces.shared_tomahawk.renderkit.html.HtmlRenderer
           org.apache.myfaces.custom.fileupload.HtmlFileUploadRenderer
org.apache.myfaces.custom.fileupload.HtmlFileUploadRenderer
- public class HtmlFileUploadRenderer 
- extends HtmlRenderer
Renderer for the HtmlInputFileUpload component.
 
 See also class AbstractHtmlInputFileUpload.
- Version:
- $Revision: 782515 $ $Date: 2009-06-07 22:28:42 -0500 (Sun, 07 Jun 2009) $
- Author:
- Manfred Geiler (latest modification by $Author: lu4242 $)
 
| Method Summary | 
|  void | decode(javax.faces.context.FacesContext facesContext,
       javax.faces.component.UIComponent uiComponent)Handle the postback of a form containing a fileUpload component.
 | 
|  void | encodeEnd(javax.faces.context.FacesContext facesContext,
          javax.faces.component.UIComponent uiComponent)
 | 
|  Object | getConvertedValue(javax.faces.context.FacesContext context,
                  javax.faces.component.UIComponent component,
                  Object submittedValue)
 | 
| protected  boolean | isDisabled(javax.faces.context.FacesContext facesContext,
           javax.faces.component.UIComponent uiComponent)
 | 
 
 
| Methods inherited from class javax.faces.render.Renderer | 
| convertClientId, encodeBegin, encodeChildren, getRendersChildren | 
 
| Methods inherited from class java.lang.Object | 
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
 
HtmlFileUploadRenderer
public HtmlFileUploadRenderer()
encodeEnd
public void encodeEnd(javax.faces.context.FacesContext facesContext,
                      javax.faces.component.UIComponent uiComponent)
               throws IOException
- 
- Overrides:
- encodeEndin class- javax.faces.render.Renderer
 
- 
- Throws:
- IOException
 
isDisabled
protected boolean isDisabled(javax.faces.context.FacesContext facesContext,
                             javax.faces.component.UIComponent uiComponent)
- 
 
decode
public void decode(javax.faces.context.FacesContext facesContext,
                   javax.faces.component.UIComponent uiComponent)
- Handle the postback of a form containing a fileUpload component.
 
 The browser request will have been in "multi-part-mime" format, where
 the normal http post is in one part, and the file being uploaded is
 in another. Hopefully JSF has been configured so that this special
 request is wrapped in a custom ServletRequest that allows us to
 fetch that extra data....
 
 
- 
- Overrides:
- decodein class- javax.faces.render.Renderer
 
- 
 
getConvertedValue
public Object getConvertedValue(javax.faces.context.FacesContext context,
                                javax.faces.component.UIComponent component,
                                Object submittedValue)
                         throws javax.faces.convert.ConverterException
- 
- Overrides:
- getConvertedValuein class- javax.faces.render.Renderer
 
- 
- Throws:
- javax.faces.convert.ConverterException
 
Copyright © 2012 The Apache Software Foundation. All Rights Reserved.