You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Nicole,
Hochleiter <ho...@seitenbau.com> on 2005/02/14 12:27:12 UTC
Cocoon 2.1.6 - CForms multipart request
Hi,
I'm using CForms (Cocoon 2.1.6 ) and I have a multipart request. I enabled
uploads in the web xml.
I always get the following error in the logfile:
org.apache.cocoon.ProcessingException: No function nor continuation given in
<map:call function> at file:/D:/cocoon-
2.1.6/build/webapp/portal/modules/sitemap.xmap:117:82
at
org.apache.cocoon.portal.coplet.adapter.impl.URICopletAdapter.streamContent
(URICopletAdapter.java:133)
at
org.apache.cocoon.portal.coplet.adapter.impl.URICopletAdapter.streamContent
(URICopletAdapter.java:89)
...
My form starts like this:
<ft:form-template name="edit_st" action="mycontent" method="POST"
enctype="multipart/form-data">
<ft:continuation-id/>
...
and when I remove the 'enctype="multipart/form-data"' part I can send the form
and it works.
I looked at the html source code of the generated form and I also found
differneced which might lead to this problem:
with enctype I get:
<form name="edit_st" method="POST" enctype="multipart/form-data"
onsubmit="forms_onsubmit(); " action="portal?cocoon-portal-action=10&cocoon-
portal-event=38">
<input name="forms_submit_id" type="hidden">
<input value="50413754441240176603640429361a3c4258395e" type="hidden"
name="continuation-id">
...
and without I get:
<form name="edit_st" method="POST" onsubmit="forms_onsubmit(); "
action="portal">
<input type="hidden" name="cocoon-portal-event" value="38">
<input type="hidden" name="cocoon-portal-action" value="13">
<input name="forms_submit_id" type="hidden">
<input value="52766b5487252448412b14833d5f765d4b835f10" type="hidden"
name="continuation-id">
...
Does anyone know what to do?
Nicole
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org
Re: Cocoon 2.1.6 - CForms multipart request
Posted by Philippe Guillard <pg...@citycita.net>.
Hi Nicole,
Can you provide more informations on what you did? In which file?
As i didn't see your message I started this thread :
http://www.mail-archive.com/dev@cocoon.apache.org/msg28677.html
in devlist explaining the same problem.
Thanks
Phil
Nicole wrote:
>Additional information: I use the forms within a portal and use the
>CopletTransformer.
>
>By stepping through the code I found out that the CopletTransformer different
>depending on the enctype. There are some lines in "protected void output(...)"
>like:
>[...]
>if ( enctype== null
> || "application/x-www-form-urlencoded".equals(enctype)) {
>[...]
>which made my forms behave different.
>When I add "|| "multipart/form-data".equals(enctype)" in the if-clause it works
>fine for me.
>
>Is there another way (without canging the code) to get that result or has the
>code really have to change?
>
>Nicole
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
>For additional commands, e-mail: users-help@cocoon.apache.org
>
>
>
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org
Re: Cocoon 2.1.6 - CForms multipart request
Posted by Nicole <ho...@seitenbau.com>.
Additional information: I use the forms within a portal and use the
CopletTransformer.
By stepping through the code I found out that the CopletTransformer different
depending on the enctype. There are some lines in "protected void output(...)"
like:
[...]
if ( enctype== null
|| "application/x-www-form-urlencoded".equals(enctype)) {
[...]
which made my forms behave different.
When I add "|| "multipart/form-data".equals(enctype)" in the if-clause it works
fine for me.
Is there another way (without canging the code) to get that result or has the
code really have to change?
Nicole
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org