Fileupload not working in Snapshot

UI Components for JSF
Post Reply
sachsedaniel
Posts: 7
Joined: 07 Dec 2011, 16:18

07 Dec 2011, 16:32

Hi everyone,

I am working with the Primefaces 3.0.RC1-SNAPSHOT and atm the fileupload is not working for me.
I embedded it like shown below in a p:dialog:

<h:form id="offerForm">
<p:dialog header="HEADER" widgetVar="offerDialog" width="600" showEffect="clip" hideEffect="clip" id="offerDialog" modal="true">
<h:panelGrid id="display" columns="2" cellpadding="4">
<h:outputText value="Upload" />
<p:fileUpload value="#{fileUploadController.file}" mode="simple"/>
</h:panelGrid>
</p:dialog>
</h:form>

When I try to open the Dialog, "nothing" happens. I just get the following error in the JS Console: "Uncaught TypeError: Object [object Object] has no method 'button'". The debugger says it is at "a.widget._destroyFileUploadButtonBar" in file fileupload.js.xhtml.

Environment:
Chrome 16.0.904.0 dev
JBoss 7.0.2
Mojarra 2.1.3

Thanks for your help!

User avatar
andyba
Expert Member
Posts: 2473
Joined: 31 Mar 2011, 16:27
Location: Steinfeld, near Bremen/Osnabrück, DE
Contact:

08 Dec 2011, 11:35

This has been said before but SNAPSHOTs, especially out of date ones, are more prone to errors than later releases
I have RC3 and RC4 currently in use and neither have shown problems with fileUpload
However even using a stable release would not help you here because you have forgotten to at least use a fileUploadHandler method and have quite probably not setup the file upload servlet + dependencies.

I suggest you

- Use the latest RC (not snapshot)
- Grab the User Guide for RC4
- Read the relevant sections.
PF 4.x (Elite versions), PF 5, Pf 5.1, PF 6.0
Glassfish 4.1, Mojarra 2.x, Java 8, Payara 4.1.1.
If you haven't read the forum rules read them now

sachsedaniel
Posts: 7
Joined: 07 Dec 2011, 16:18

22 Dec 2011, 11:26

No this hasn't helped at all! I had already set up everything correct. The same constellation is working outside of a dialog, so this is not the problem.

Please investigate more into the problem solving within popups. This is a serious problem when a lot of the components just works half in dialog!

sachsedaniel
Posts: 7
Joined: 07 Dec 2011, 16:18

02 Jan 2012, 12:40

Any update on this? Should i file a bug?

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 26 guests