Page 2 of 2

Re: fileUpload listener not firing

Posted: 22 Jun 2011, 16:30
by blind3r
So no one has this working ?

Same problem with 3.0 M2

Posted: 28 Jun 2011, 16:36
by ITReppert
I have a very simple :

Code: Select all

      <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

Re: fileUpload listener not firing

Posted: 28 Jun 2011, 18:03
by blind3r
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

Re: fileUpload listener not firing

Posted: 29 Jun 2011, 16:06
by ITReppert
That's a good question ..........
I don't get it to work.

Regards,
Holger