cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From oceatoon <t.katelb...@systheo.com>
Subject Re: CForms: Bind Onload upload widget???
Date Thu, 19 Aug 2004 14:41:36 GMT
Thanks Bruno 

Indeed , the multiPart type isn't the same , This doesn't work.
well as anybody else would do in this case , I changed the idea :)
Anyhow thanks for he help
T.  
Bruno Dumon wrote:

> On Thu, 2004-08-19 at 11:54, oceatoon wrote:
>> Hello
>> 
>> I am trying to declare a Java Pacakge in the  binding javascript/onload
>> tag but I can't seem to get this to work???
>>  is it possible to import Java Packages like in flow in the binding
>> javascript / onload tag ?
>> 
>> <fb:javascript id="path" path="@path" direction="load">
>> <fb:load-form>
>>  var path = jxpathContext.getValue("@path");
>>  var uploadFile = new java.io.File(path);
>>  var uploadFilePart =
>>
Packages.org.apache.commons.httpclient.methods.multipart.FilePart(path,uploadFile);
> 
> you miss a 'new' keyword here.
> 
>>   widget.setValue(uploadFilePart);
> 
> but I don't think this will work, as the value for the upload widget
> should be a org.apache.cocoon.servlet.multipart.Part
> 



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Mime
View raw message