jsf 2 - FileUpload in primefaces5 -
i have problem primefaces related p:fileupload. problem can't identify in method load each file (like handlefileupload(fileuploadevent event) ) lastly file on list of files when charging multiple files. possible? how? need help. need know because need close 'addfile' dialog when charge lastly file.
public void handlefileupload(fileuploadevent event) { ... } <p:dialog header="#{text['tasksbacking.attach.addfile']}" widgetvar="addfile" height="500" width="500" closeonescape="false" closable="false" resizable="false" draggable="false" fitviewport="true" modal="true" appendto="@(body)"> <h:form enctype="multipart/form-data" id="addfiledialog"> <p:fileupload fileuploadlistener="#{attachmentscomponent.handlefileupload}" mode="advanced" multiple="true" dragdropsupport="true" allowtypes="/(\.|\/)(gif|jpe?g|png|pdf|doc|docx|txt|xml)$/" update=":#{cc.clientid}:formattachform:attachtree"/> </h:form> </p:dialog>
the reply is: added code in p:fileupload oncomplete="pf('addfile').hide();"
thanks @pellizon
jsf-2 primefaces
No comments:
Post a Comment