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 of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.