1 Reply Latest reply on Aug 12, 2011 2:31 PM by mp911de

    can <rich:fileUpload /> be specialized to upload additional data?

    gtludwig

      hi all,

       

      On my application I have a <rich:uploadFile /> within a  <rich:popupPanel />, which works perfectly under RichFaces 4.x.

       

      On the page I call this <rich:popupPanel /> the processing result is displayed on a table, where I've set a few controls. Also on this table, there are two fields the user need to edit for each file uploaded - one alias (or name) String value and one quatity int value.

       

      Can I specialize the  <rich:popupPanel /> component so it displays two extra columns?

       

      The <rich:popupPanel /> code snippet is:

      <rich:popupPanel id="bomAddPopup" resizeable="false" moveable="false"

          height="300" width="450">

      <f:facet name="header">

      <h:outputText value="Indique o caminho do(s) arquivo(s) a carregar" />

      </f:facet>

      <f:facet name="controls">

      <h:outputLink value="#"

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

      <h:graphicImage value="/images/icons/cross.png" />

      </h:outputLink>

      </f:facet>

      <a4j:outputPanel>

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

      <rich:fileUpload id="popupFileUpload"

                      title="Indique o caminho do arquivo a carregar"

                      acceptedTypes="xls, xlsx"

                      fileUploadListener="#{assemblyMB.listener}" listHeight="250"

                      listWidth="400" render="batchPanel"

                      onuploadcomplete="#{rich:component('bomAddPopup')}.hide(); return false;"

                      noDuplicate="true" addLabel="Adicionar BOM"

                      clearAllLabel="Remover todas" doneLabel="Concluir"

                      uploadLabel="Carregar BOM(s)" deleteLabel="Remover"

                      />

      </h:form>

      </a4j:outputPanel>

      </rich:popupPanel>

       

      Thanks in advance,

      Gustavo