Board index JavaServer Faces General fileUpload listener not firing

fileUpload listener not firing

Components, Ajax Framework, Utilities and More.


Posts: 11
So no one has this working ?
Using PrimeFaces v3.0, JSF Mojarra 2.0.6 and Tomcat 6

Post 28 Jun 2011, 16:36

Posts: 57
I have a very simple :
      <h:form id="uploadformid" enctype="multipart/form-data">
            <p:fileUpload id="fuploadid" value="#{fileUploadController.file}" mode="simple" />
        </h:form>
        <h:form>
            <p:commandButton id="uploadbuttonid" value="Submit" ajax="false" 
                             action="#{fileUploadController.upload1}"/>
        </h:form>


and a JSF Sessionbean fileUploadController.

No event fired.
When accessing the bean from other components, the bean is initialised and working, so
the bean is quite fine.

?????? What's the problem ?????? I don't get it !

Regards,
Holger
// Netbeans 7.2 // Glassfish 3.1.2 // Windows 7 (64 bit) // FireFox // PrimeFaces 3.4.2


Posts: 11
Hello Holger,

I'm trying to upgrade from Primefaces 2.2 to 3.x. I've been using ajax to upload the files and I would like to keep using it, you said it yourself: "No event is fired", if no event is fired how can I deal with the uploaded files (copy them, resized them, whatever)?

Thank you
Using PrimeFaces v3.0, JSF Mojarra 2.0.6 and Tomcat 6


Posts: 57
That's a good question ..........
I don't get it to work.

Regards,
Holger
// Netbeans 7.2 // Glassfish 3.1.2 // Windows 7 (64 bit) // FireFox // PrimeFaces 3.4.2

Previous

Return to General