留言板

UploadFile Portlet & MyFaces

Manuel Baena Fernández,修改在16 年前。

UploadFile Portlet & MyFaces

New Member 帖子: 3 加入日期: 08-3-28 最近的帖子
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,修改在15 年前。

RE: UploadFile Portlet & MyFaces

Junior Member 帖子: 66 加入日期: 07-6-11 最近的帖子
Hello manuel

did you find any solution for that problem??

i have a same problem..
Suresh Kumar Dasari,修改在13 年前。

RE: UploadFile Portlet & MyFaces

New Member 帖子: 4 加入日期: 10-12-2 最近的帖子
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,修改在11 年前。

RE: UploadFile Portlet & MyFaces

New Member 帖子: 3 加入日期: 12-6-13 最近的帖子
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,修改在11 年前。

RE: UploadFile Portlet & MyFaces

Liferay Legend 帖子: 2655 加入日期: 05-7-27 最近的帖子
The icefaces3-portlet demo contains a working example of the ICEfaces 3 ace:fileEntry component.