Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
Manuel Baena Fernández
UploadFile Portlet & MyFaces
March 28, 2008 4:30 AM
Answer

Manuel Baena Fernández

Rank: New Member

Posts: 3

Join Date: March 28, 2008

Recent Posts

Hi all,

I have a big problem, i hope someone can help me.

Im using: JDK 5.0, Tomcat 5.5, MyFaces 1.1.5, Tomahawk 1.1.3, Liferay 4.3.6

I have a web application made using JSF, this application has an form where upload a file using Tomahawk tag:

<t:inputFileUpload id="file" value="#{miBean.uploadedFile}"
storage="file" immediate="true"/>

Enctype is "multipart/form-data". It uses a filter:

web.xml :
<filter>
<filter-name>MyFacesExtensionsFilter</filter-name>
<filter-class>
org.apache.myfaces.webapp.filter.ExtensionsFilter
</filter-class>
<init-param>
<param-name>maxFileSize</param-name>
<param-value>20m</param-value>
</init-param>
</filter>

This application runs without problems on tomcat 5.5. The problem is when I put this application on a portlet and try to run on Liferay 4.3.6.
In this case when I click submit botton the form reloads, if I delete the enctype= "multipart/forma-data", the UploadFile parameter is null.
I have tried MultipartRequestPhaseListener i have found at:
http://www.icefaces.org/JForum/posts/downloadAttach/938.page;jsessionid=E48EDA3F47A61CA23D72790D46E33153.jboss1

I have tried Tomahawk Bridge I have found here:

http://palab.blogspot.com/2007/01/tomahawk-bridge-091-released.html

I cant do it anything, I cant uploadfile but i cant believe that there´s noway for uploading file using JSF ad Portlet at same time.

I hope somenone could help me.
Thank you very much
Angel Luis Scull
RE: UploadFile Portlet & MyFaces
March 27, 2009 1:54 PM
Answer

Angel Luis Scull

Rank: Junior Member

Posts: 67

Join Date: June 11, 2007

Recent Posts

Hello manuel

did you find any solution for that problem??

i have a same problem..
Suresh Kumar Dasari
RE: UploadFile Portlet & MyFaces
April 13, 2011 10:32 AM
Answer

Suresh Kumar Dasari

Rank: New Member

Posts: 4

Join Date: December 2, 2010

Recent Posts

Hi manuel,

I do have the same issue, Actually I am using Richfaces and portlet, but with richfaces I couldnt able to upload file, so I am using tomahawk tag to upload file. This tag is not understood by liferay I guess, am I missing some configurations to know liferay about tomahawk?

any help is appreciated.
Mitja Šturm
RE: UploadFile Portlet & MyFaces
June 13, 2012 1:17 PM
Answer

Mitja Šturm

Rank: New Member

Posts: 3

Join Date: June 13, 2012

Recent Posts

Hi

Has someone solved this problem ? Please let me know.
I am also using IceFaces with tomahawk and fileUpload doesn't work

Mitja
Neil Griffin
RE: UploadFile Portlet & MyFaces
June 13, 2012 1:23 PM
Answer

Neil Griffin

LIFERAY STAFF

Rank: Liferay Legend

Posts: 2378

Join Date: July 26, 2005

Recent Posts

The icefaces3-portlet demo contains a working example of the ICEfaces 3 ace:fileEntry component.