jsf - Strange display of p:fileUpload component -
i trying use fileupload component of primefaces , working but empty error message displayed when component appeared no content , not understand why.
and if add file component disappeared still not pretty have when component loads.
// view <h:form> <p:fileupload fileuploadlistener="#{bean.handlefileupload}" /> </h:form> // managedbean public void handlefileupload(fileuploadevent event) { uploadedfile file = event.getfile(); system.out.println("handlefileupload : " + file); }
the managed bean function called when click on upload button.
hope understand problem !
thanks in advance
Comments
Post a Comment