You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by Apache Wiki <wi...@apache.org> on 2006/02/27 23:10:46 UTC

[Myfaces Wiki] Update of "Setup For File Uploads" by DaveBrondsema

Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Myfaces Wiki" for change notification.

The following page has been changed by DaveBrondsema:
http://wiki.apache.org/myfaces/Setup_For_File_Uploads

The comment on the change is:
t:inputFileUpload instead of x:, and show import line in Java snippet

------------------------------------------------------------------------------
  }}}
   
     
- '''2)''' Make sure your form is properly encoded and add the x:inputFileUpload
+ '''2)''' Make sure your form is properly encoded and add the t:inputFileUpload
  
  {{{
  <h:form enctype="multipart/form-data" id="myForm" name="myForm">
  ...
- <x:inputFileUpload 
+ <t:inputFileUpload 
    id="myUploadedFile" 
    storage="file" accept="image/*" 
    styleClass="myStyle" 
@@ -65, +65 @@

  '''3)''' add !UploadedFile instance variable and setter/getter to backing bean
  
  {{{
+ import org.apache.myfaces.custom.fileupload.UploadedFile;
+ ...
  public class MyBackingBean {
  ...
    private UploadedFile myUploadedFile;