2.2 M1 p:fileUpload not working in p:tab

UI Components for JSF
Post Reply
moktc
Posts: 37
Joined: 18 Aug 2010, 03:08

29 Aug 2010, 04:06

Hi All

p:fileUpload not uploading. While the Browse dialog is popup and file is seleted, when I click on the "Upload" link the following is displayed on the page..

~com.sun.faces.saveStateFieldMarker~
Here is the xhtml

Code: Select all

<p:tabView>
<p:tab title="Inventory">
<h:form id="inventoryForm" prependId="false">
</h:form>
</p:tab>
<p:tab title="Inventory Upload">
<h:form id="invtForm" prependId="false">
<p:fileUpload id="uploadInvt" label="Browse" allowTypes="*.txt;*.TXT;*.csv;" description="Tab-delimited files" fileUploadListener="#{uploadInventoryController.handleTempInventoryUpload}" update="invtForm,msgs" />
</h:form>
</p:tab>
</p:tabView>
For some reason I keep getting.. In firebug I am getting...

Code: Select all

get cancel.png.jsf?ln=primefaces...   http status 304 not modified
get uploadyfy.swf.jsf?ln=primefaces... http status 304 not modified

moktc
Posts: 37
Joined: 18 Aug 2010, 03:08

29 Aug 2010, 13:31

I think there is a bug in 2.2 M1 snapshot (dated 28 Aug 2010). I also downloaded prime-showcase-1.0.0-SNAPSHOT (dated 27 August 2010) and the fileUpload demo failed. In my project, I replace 2.2 M1 with 2.1 and the upload now works.

FYI.

kazak
Posts: 13
Joined: 24 Aug 2010, 22:30

30 Aug 2010, 11:24

I confirm the same problem with 2.2 M1. What I found is that fileUploadListener is not fired with 2.2. M1.
fileUploadFilter application filter is working and saving the file in filter uploadDirectory,
but after that the fileUploadListener is not fired.
The same project is working normally with 2.1
-------------------------------------------------------------------------------------------------------------------------------------
PrimeFaces 2.2 M1 - Mojarra 2.0.2 (FCS b10) included in GlassFish v3.0.1 - Java 1.6.0_21-b07 - NetBeans 6.9.1

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 33 guests