• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

primefaces fileupload doesn't work

 
Greenhorn
Posts: 13
Hibernate Eclipse IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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());
}
reply
    Bookmark Topic Watch Topic
  • New Topic