Fórum

UploadFile Portlet & MyFaces

Manuel Baena Fernández, modificado 16 Anos atrás.

UploadFile Portlet & MyFaces

New Member Postagens: 3 Data de Entrada: 28/03/08 Postagens Recentes
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, modificado 15 Anos atrás.

RE: UploadFile Portlet & MyFaces

Junior Member Postagens: 66 Data de Entrada: 11/06/07 Postagens Recentes
Hello manuel

did you find any solution for that problem??

i have a same problem..
Suresh Kumar Dasari, modificado 12 Anos atrás.

RE: UploadFile Portlet & MyFaces

New Member Postagens: 4 Data de Entrada: 02/12/10 Postagens Recentes
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, modificado 11 Anos atrás.

RE: UploadFile Portlet & MyFaces

New Member Postagens: 3 Data de Entrada: 13/06/12 Postagens Recentes
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, modificado 11 Anos atrás.

RE: UploadFile Portlet & MyFaces

Liferay Legend Postagens: 2655 Data de Entrada: 27/07/05 Postagens Recentes
The icefaces3-portlet demo contains a working example of the ICEfaces 3 ace:fileEntry component.