rich.fileUpload breaks form action in portal

Solution In Progress - Updated -

Issue

In a RichFaces portlet, when a rich:fileUpload is submitted (i.e. files are uploaded), the action of the form is not preserved well.

The form is broken after rich:fileUpload with immediateUpload="true" is submitted because the richfaces packed.js richfaces.ui.FileUpload.prototype submit function manipulates the form action without restoring the original action.

Using a separate form is not an option for us, since we heavily rely on a facelet template which already defines a form.

Environment

  • Red Hat JBoss Portal (JPP)
    • 6.1.1
  • JBoss Web Frameworks Kit (WFK)
    • 2.5.0
  • RichFaces
    • 4.3.5.Final

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content