You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cocoon.apache.org by Gunter D'Hondt <gu...@sofico.be> on 2003/10/27 09:05:54 UTC

Woody BinaryWidget

Hi,

I was thinking of making a page where people can upload a file but I was
wondering how to do that with Woody. For the layout (inputfield with
"Browse"-button) a new widget can be made and the datatype should be a
byte-array and a filename?

Any thought on this? 
Is there already a list/doc that describes all available widgets and
datatypes?

Gunter D'Hondt 
www.sofico.info


Re: Woody BinaryWidget

Posted by Upayavira <uv...@upaya.co.uk>.
Gunter D'Hondt wrote:

>Upayavira,
>
>Don't worry I can wait (better that than making the same again). 
>What datatype have you used? A composite datatype with the byte-array
>and the filename as string?
>  
>
At present it returns an InputStream to the part (either in memory or on 
disc). Sylvain suggested making it return the Part, we can discuss that 
when I return from time away (computer is being switched off straight 
after this mail!)

Regards, Upayavira

>Regards,
>Gunter D'Hondt
>
>
>-----Original Message-----
>From: dev-return-50206-gudo=sofico.be@cocoon.apache.org
>[mailto:dev-return-50206-gudo=sofico.be@cocoon.apache.org] On Behalf Of
>Upayavira
>Sent: maandag 27 oktober 2003 9:47
>To: dev@cocoon.apache.org
>Subject: Re: Woody BinaryWidget
>
>
>Gunter D'Hondt wrote:
>
>  
>
>>Hi,
>>
>>I was thinking of making a page where people can upload a file but I 
>>was wondering how to do that with Woody. For the layout (inputfield 
>>with
>>"Browse"-button) a new widget can be made and the datatype should be a
>>byte-array and a filename?
>>
>>Any thought on this?
>>Is there already a list/doc that describes all available widgets and
>>datatypes?
>>
>>Gunter D'Hondt
>>www.sofico.info
>>
>>
>> 
>>
>>    
>>
>I've got an Upload widget working and almost ready to commit, but won't 
>be able to do so straight away as I'm about to go away for a week.
>
>If you can wait, I can finish that and commit it.
>
>Regards, Upayavira
>
>
>
>  
>



RE: Woody BinaryWidget

Posted by Gunter D'Hondt <gu...@sofico.be>.
Upayavira,

Don't worry I can wait (better that than making the same again). 
What datatype have you used? A composite datatype with the byte-array
and the filename as string?

Regards,
Gunter D'Hondt


-----Original Message-----
From: dev-return-50206-gudo=sofico.be@cocoon.apache.org
[mailto:dev-return-50206-gudo=sofico.be@cocoon.apache.org] On Behalf Of
Upayavira
Sent: maandag 27 oktober 2003 9:47
To: dev@cocoon.apache.org
Subject: Re: Woody BinaryWidget


Gunter D'Hondt wrote:

>Hi,
>
>I was thinking of making a page where people can upload a file but I 
>was wondering how to do that with Woody. For the layout (inputfield 
>with
>"Browse"-button) a new widget can be made and the datatype should be a
>byte-array and a filename?
>
>Any thought on this?
>Is there already a list/doc that describes all available widgets and
>datatypes?
>
>Gunter D'Hondt
>www.sofico.info
>
>
>  
>
I've got an Upload widget working and almost ready to commit, but won't 
be able to do so straight away as I'm about to go away for a week.

If you can wait, I can finish that and commit it.

Regards, Upayavira



Re: Woody BinaryWidget

Posted by Upayavira <uv...@upaya.co.uk>.
Gunter D'Hondt wrote:

>Hi,
>
>I was thinking of making a page where people can upload a file but I was
>wondering how to do that with Woody. For the layout (inputfield with
>"Browse"-button) a new widget can be made and the datatype should be a
>byte-array and a filename?
>
>Any thought on this? 
>Is there already a list/doc that describes all available widgets and
>datatypes?
>
>Gunter D'Hondt 
>www.sofico.info
>
>
>  
>
I've got an Upload widget working and almost ready to commit, but won't 
be able to do so straight away as I'm about to go away for a week.

If you can wait, I can finish that and commit it.

Regards, Upayavira