FileUpload doens't work in portlets

UI Components for JSF
Post Reply
aperezymadrid
Posts: 3
Joined: 01 Nov 2010, 12:35

08 Mar 2011, 15:10

Hi

I designed a web app to upload files and then I converted it to a portlet, a Liferay 5.2.3 Portlet, PrimeFaces 2.2.1. When rendering the page I got an exception in FileUploaderRendered:104.

The issue is here

Code: Select all

writer.write(",jsessionid:'" + ((HttpSession) (context.getExternalContext().getSession(true))).getId() + "'");
context.getExternalContext().getSession(true) is instance of com.liferay.portlet.PortletSessionImpl; it is not an HttpSession. But if not cast is used, it would work, unless with Liferay 5.2.3, because PortletSessionImpl has method

Code: Select all

context.getExternalContext().getSession(true).getId()
I've read in portletfaces forum that JSF 2.0 does not support file uploads. Has Primefaces fixed that or file uploading remains a problem even with Primefaces?

Thanks

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 55 guests