Code: Select all
<h:form id="myform1" enctype="multipart/form-data">
<h:panelGrid columns="2" cellpadding="10">
<h:outputLabel value="Drawing:" />
<p:fileUpload fileUploadListener="#{document.handleFileUpload}" update="msgs" allowTypes="*.*;"/>
</h:panelGrid>
</h:form>