How to upload a file via Portlet Bridge

Solution Verified - Updated -

Issue

How to upload a file on Seam/JSF portlet apllication in EPP5.1.0/Portlet Bridge?

This code doesn't work:

<h:form enctype="multipart/form-data">
   <input type="file" id="file" name="file" />
   <h:commandButton value="Upload" action="#{itemUploadAction.uploadItem}" />
</h:form>
<rich:fileUpload> doesn't work as well.

Environment

  • JBoss Enterprise Portal Platform (EPP)
    • 5.1.0
  • JBoss Seam
  • JBoss Portlet Bridge
    • 2.1.0

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