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);
  widget.setValue(uploadFilePart);
  </fb:load-form>
 </fb:javascript>


Thanks 
TIbor

oceatoon wrote:

> Hello everyone
> 
> I am faced with a pb to recover the content of my uplaod widget on bind
> load, since what I really bind onSave is the on server path(string) of my
> uploaded file.
> Therefore when I bind onLoad, the widget yiels offcourse because of
> getting a string instead of a Part type Object. So I looked for a
> constructor Part(string path) to put into the on bind load of the widget,
> but
> unfortunetly haven't found anything of the sort?  I might have missed it
> or is there some other technique ??
> 
> Thanks for the help
> Tibor



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to