-
1. Re: s:fileUpload whit portal
shane.bryzak Feb 23, 2007 8:00 PM (in response to ppassantini)I haven't tried this myself but surely it should be easy to test?
-
2. Re: s:fileUpload whit portal
ppassantini Feb 26, 2007 4:23 AM (in response to ppassantini)Hi shane,
I have just tried, but unfortunately it doesn't work!
Could you please help me?
this is my configutaration:
JSP
<h:form id="myForm" enctype="multipart/form-data" >
<s:fileUpload accept="" fileName="#{file.filename}" data="#{file.data}" />
<h:commandButton value="Upload" action="#{fileManager.upload}"/>
</h:form>
BEAN
"file" is the bean that represents the file uploaded
"fileManager" is the bean that use the file uploaded
WEB.XML
...
<filter-name>Seam Filter</filter-name>
<filter-class>org.jboss.seam.servlet.SeamMultipartFilter</filter-class>
<filter-mapping>
<filter-name>Seam Filter</filter-name>
<url-pattern>*.seam</url-pattern>
</filter-mapping>
...
It seams that when the enctype of h:form is ="multipart/form-data", the method upload of fileManager is not called; if I don't set the enctype of h:form the method upload is called, but the bean file is null.
Thanks for you help! -
3. Re: s:fileUpload whit portal
jampierre Feb 27, 2007 3:46 AM (in response to ppassantini)Hi,
I've the same problem.
Anyone can help us.
Thank you so much.
Bye bye
JP -
4. Re: s:fileUpload whit portal
jampierre Mar 1, 2007 6:30 AM (in response to ppassantini)Hi All,
any idea to solve this problem?
Thanks!!!! -
5. Re: s:fileUpload whit portal
shane.bryzak Mar 1, 2007 12:59 PM (in response to ppassantini)Please create a JIRA issue for this and assign to me so it doesn't slip under the radar.
-
6. Re: s:fileUpload whit portal
ppassantini Mar 2, 2007 3:37 AM (in response to ppassantini)hi shane,
thanks for you replay
I created a JIRA issue yet, but I don't know how to assign it to you. Can you explain how to do it?
Or you can assign it yourself.
The ticket number is JBSEAM-947!
Thanks, Peter! -
7. Re: s:fileUpload whit portal
jampierre Mar 7, 2007 6:33 AM (in response to ppassantini)HI Shane,
I'll be waiting your answer full of hope.
Thank you so much
Jampierre -
8. Re: s:fileUpload whit portal
shane.bryzak Mar 7, 2007 7:56 AM (in response to ppassantini)Thanks, I'll take a look at the issue when I get a chance.
-
9. Re: s:fileUpload whit portal
jampierre Mar 8, 2007 4:45 AM (in response to ppassantini)HI Shane,
Thanks a lot.
JP -
10. Re: s:fileUpload whit portal
czhao07 Mar 25, 2007 8:09 PM (in response to ppassantini)I've posted a fix on this issue, check it out: http://jira.jboss.org/jira/browse/JBSEAM-947.
-Chunyun -
11. Re: s:fileUpload whit portal
wporzo Feb 4, 2008 11:03 AM (in response to ppassantini)Hello.
I'm using JBoss 2.0.1.GA and I have same problem in JBoss Portal 2.6.3. When my form is marked as multipart, there is no method invocaction in seam component.