1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32
   |  
<rich:fileUpload fileUploadListener="#{privAwaitingDocumentGUI.uploadListener}"
                id="upload" maxFilesQuantity="5"
                immediateUpload="true"
                acceptedTypes="jpg, gif, pdf, bmp" allowFlash="false">
                <a4j:support event="onuploadcomplete" reRender="info" />
            </rich:fileUpload>
 
              <h:panelGroup id="info">
                <rich:panel bodyClass="info">
                    <f:facet name="header">
                        <h:outputText value="Uploaded Files Info" />
                    </f:facet>
 
		<rich:dataGrid columns="1" value="#{privAwaitingDocumentGUI.uploadedFileList}"
                        var="file" rowKeyVar="row">
 
                        <rich:panel>
                            <h:panelGrid columns="2">
                                <a4j:mediaOutput element="img" mimeType="#{file.mime}" value="#{row}"
                                createContent="#{privAwaitingDocumentGUI.paint}"                                    
                                style="width:100px; height:100px;" cacheable="false">
                                </a4j:mediaOutput>
                                <h:panelGrid columns="2">
                                    <h:outputText value="#{userBean.bundle['priv/awaitingDocument']['document_file_name']}" />
                                    <h:outputText value="#{file.fileName}" />
                                </h:panelGrid>
                                <a4j:commandButton actionListener="#{privAwaitingDocumentGUI.processSaveDocument}">
                                </a4j:commandButton>
                            </h:panelGrid>
                        </rich:panel>
                        </rich:dataGrid> | 
Partager