views:

33

answers:

2

I'm trying to use RichFaces <rich:fileUpload> component (with Seam as the overall framework) to upload a series of files. However, when I click the "Add" button nothing happens. Absolutely nothing. I'm not prompted with an open dialog or anything.

I have a JSF page with an , and inside of that form I have:

<rich:fileUpload allowFlash="auto" id="contentImageUpload"
immediateUpload="true" maxFilesQuantity="5"
noDuplicate="true" required="true"
uploadData="#{contentSubmissionAction.contentImages}" />

The page renders fine, but when I click the "Add" button, nothing happens. The #{contentSubmissionAction.contentImages} property is a List of UploadItem's, so I thought that was setup properly. Has anyone seen this before? Is there something in the configuration that I could be missing that could cause this?

+1  A: 

Is everything been put inside a <h:form>? Have you checked the server logs for any exceptions? You may consider to play around with the source code which you can find in this demo (click View source).

BalusC
Yes, everything is inside a <h:form>. I looked at the example when I started working on this, and everything aligns pretty closely. However, I still get nothing when I click "Add". There are no exceptions or log messages. It seems as though there is no activity at all.
Shadowman
Any JS errors in the console?
BalusC
A: 

I discovered the issue that was causing this. The web theme the site was using utilized jquery and included it in the <head>. This must have conflicted with the version included with RichFaces, because once I removed it everything started working again.

Shadowman