aspose file tools
The moose likes JSF and the fly likes primefaces fileupload doesn't work Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » JSF
Reply Bookmark "primefaces fileupload doesn Watch "primefaces fileupload doesn New topic
Author

primefaces fileupload doesn't work

yun hu
Greenhorn

Joined: Feb 18, 2010
Posts: 13

Does anybody use p:fileUpload no problem?

I have problem when i click upload button. It doent go into the managedBean action.

here is my code.

xhtml:<h:form id="mainform" prependId="false" enctype="multipart/form-data">
<p:fileUpload id="test"
fileUploadListener="#{commonBean.handleFileUpload}"
allowTypes="*.jpg;*.png;*.gif;" description="Images" />
</h:form>

managedBean:
public void handleFileUpload(FileUploadEvent event) {
System.out.println(event.getFile().getFileName());
}
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: primefaces fileupload doesn't work
 
Similar Threads
JSF 2.0 GlassFish 3.0.1 problem
Trying to change <ui:include> src tag dinamically
DataTable and UploadFile
Passing parameters with h: link
JSF 2.0 and AJAX Problem