0 Replies Latest reply on Aug 19, 2009 5:36 AM by rashmi_ceru ceru

    adding the upload file option in Identity portal

    rashmi_ceru ceru Newbie

      Hi All ,
      I am using jboss AS 4.2+portal 2.7 . i am want to add the upload file option in the registration page . i am using the identity portal for registration page . i have added the bellow code . but when submit the form , form is not getting submited . if i use in the form tag
      enctype="multipart/form-data .
      in the portlet . xml i am using javax.portlet.faces.GenericFacesPortlet class .
      can any one please help me on this . thanks in advance .

      This is the code i have added .

      I have configured the extension filter in the web.xml
      <!-- Extensions Filter -->

      Set the size limit for uploaded files.
      Format: 10 - 10 bytes
      10k - 10 KB
      10m - 10 MB
      1g - 1 GB

      Set the threshold size - files
      below this limit are stored in memory, files above
      this limit are stored on disk.

      Format: 10 - 10 bytes
      10k - 10 KB
      10m - 10 MB
      1g - 1 GB

      Set the path where the intermediary files will be



      form is properly encoded and add the t:inputFileUpload

      <h:form enctype="multipart/form-data" id="myForm" name="myForm">

      storage="file" accept="image/*"


      UploadedFile instance variable and setter/getter to backing bean

      import org.apache.myfaces.custom.fileupload.UploadedFile;

      public class MyBackingBean {

      private UploadedFile myUploadedFile;

      public UploadedFile getMyUploadedFile() {
      return myUploadedFile;

      public void setMyUploadedFile(UploadedFile myUploadedFile) {
      this.myUploadedFile = myUploadedFile;