5 Replies Latest reply on Sep 19, 2011 10:57 AM by Pierre Lenaerts

    FileUpload in popupPanel not calling fileUploadListener

    Albert Itkin Newbie

      I have a popup in my form:

       

      <rich:popupPanel id="popup" modal="true" resizeable="true" width="500" heigt="300">

      <f:facet name="header">

        <h:outputText value="Select Template File" />

      </f:facet>

      <f:facet name="controls">

        <h:outputLink value="#"

        onclick="#{rich:component('popup')}.hide(); return false;">

      X

      </h:outputLink>

      </f:facet>

      <rich:fileUpload id="FileSelect" addLabel="Select File"

        acceptedTypes="xls" clearLabel=""

        fileEntryClass="field-label"

        uploadLabel="Crete BA File"

        doneLabel="upLoaded"

        fileUploadListener="#{adjustmBean.CreateBaFile}"

        clearAllLabel=""

        addButtonClassDisabled="commandButton1">

      </rich:fileUpload>

      </rich:popupPanel>

       

      which is called from menuitem:

       

      <rich:menuItem    icon="/images/excelicon.jpg"

        onclick="#{rich:component('popup')}.show()" mode="ajax"

        <h:outputText value="Create BA Upload File" />

      </rich:menuItem>

       

      After file selected and uploaded listener is never called. when the same fileUpload placed directly on the form, everything is working fine.

      Any ideas why or way to fixed it?