cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Philippe Guillard <pguill...@soociety.com>
Subject Re: Enctype + CachingURI Coplet
Date Wed, 23 Feb 2005 09:33:03 GMT
It seems Revision *27956* 
<http://svn.apache.org/viewcvs.cgi?rev=27956&view=rev> was fixing the 
enctype problem, this was removed in Revision *28123* 
<http://svn.apache.org/viewcvs.cgi?rev=28123&view=rev>  to handle more 
generally attributes. I builded with last revision ( Revision *122957* 
<http://svn.apache.org/viewcvs.cgi?rev=122957&view=rev>), adding :
             final String encType = attributes.getValue("enctype");
               if ( encType != null ) {
                   newAttributes.addCDATAAttribute("enctype", encType);
               }
Now i get the continuation but form.lookupWidget("upload").getValue() 
seems always null. At the same time i discovered the file uploaded is 
only available in the same pipeline.
Any advice welcomed !

Phil


Philippe Guillard wrote:

> Hi,
>
> I know that portal-html-eventlink doesn't delete enctype attribute 
> anymore (http://issues.apache.org/bugzilla/show_bug.cgi?id=28095)
> Anyway i can't make my upload form work anymore in a cachingURI 
> coplet, cocoon2.1.6, (I updated HTMLEventLinkTransformer.java to last 
> revision 122957 that i found.)
>
> I get "visually" no continuation and the form is submitted again, 
> loosing my input.
> The point is, when i suppress the part 'enctype="multipart/form-data" 
> ', i have continuation ok!!
>
> My Template
> ____________
> <ft:form-template action="" method="POST" enctype="multipart/form-data">
> <ft:continuation-id/>
> (tried also  <ft:form-template action="#{$continuation/id}.continue" 
> method="POST" enctype="multipart/form-data"> with stemap equivalent)
>
>
>
> Rendered html, that seems ok to me
> ____________________________
> <form xmlns:coplet="http://apache.org/cocoon/portal/coplet/1.0" 
> method="POST" onsubmit="forms_onsubmit(); " action="portal">
> <input type="hidden" name="cocoon-portal-event" value="3"><input 
> type="hidden" name="page" value="group.Photos">
> <input name="forms_submit_id" type="hidden">
> <input value="471a230555871e150852245c031e67725c6e406c" type="hidden" 
> name="continuation-id">
>
> Anybody any idea ??
> Regards,
>
> Phil
>
>


Mime
View raw message