Foren

UploadFile Portlet & MyFaces

Manuel Baena Fernández, geändert vor 16 Jahren.

UploadFile Portlet & MyFaces

New Member Beiträge: 3 Beitrittsdatum: 28.03.08 Neueste Beiträge
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
thumbnail
Angel Luis Scull, geändert vor 15 Jahren.

RE: UploadFile Portlet & MyFaces

Junior Member Beiträge: 66 Beitrittsdatum: 11.06.07 Neueste Beiträge
Hello manuel

did you find any solution for that problem??

i have a same problem..
Suresh Kumar Dasari, geändert vor 13 Jahren.

RE: UploadFile Portlet & MyFaces

New Member Beiträge: 4 Beitrittsdatum: 02.12.10 Neueste Beiträge
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, geändert vor 11 Jahren.

RE: UploadFile Portlet & MyFaces

New Member Beiträge: 3 Beitrittsdatum: 13.06.12 Neueste Beiträge
Hi

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

Mitja
thumbnail
Neil Griffin, geändert vor 11 Jahren.

RE: UploadFile Portlet & MyFaces

Liferay Legend Beiträge: 2655 Beitrittsdatum: 27.07.05 Neueste Beiträge
The icefaces3-portlet demo contains a working example of the ICEfaces 3 ace:fileEntry component.