RE: Form upload and download

2006-09-07 Thread Mark Stang
Try this:
The Upload is a Tapestry Component.  It expects a method with the signature 
like below.
HTML:
tr
td width=150
Filename
/td
td
input type=file jwcid=@Upload 
file=ognl:page.visit.currentState.certFile size=30/nbsp*
/td
/tr

This is probably done as part of button submit, like upload.
errorMessage = null;
if (certFile != null  certFile.getSize()  0)
{
InputStream stream = certFile.getStream();
// process the stream...
}

This is the method Tapestry will call:
public void setCertFile(IUploadFile certFile)
{
this.certFile = certFile;
}


hth,

Mark


Name: Mark J. Stang
Title: Senior Engineer/Architect
office: +1 303.468.2900
mobile: +1 303.507.2833
Ping Identity



-Original Message-
From: Peter Dawn [mailto:[EMAIL PROTECTED]
Sent: Thu 9/7/2006 6:34 PM
To: tapestry-user@jakarta.apache.org
Subject: Form upload and download
 
guys,

i have been trying to implement a page upload and download
functionality within my webapp.

the upload example in tap3 doc seems to be incompelete. can somebody
provide the page file content for that example. i am getting an
ExpressBinding [UploadPage listener.formSubmit] error.

any help pls.

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




Re: Form upload and download

2006-09-07 Thread Nick Westgate

It should be ognl:listeners.formSubmit.
Note that listeners ends in an s.

Cheers,
Nick.


Peter Dawn wrote:

thats good. but i am still trying to get the upload example to work
from the documentation. i am still getting the unable to resolve
expression 'listener.formSubmit for com.example.pageUpload error.

can somebody help me out here.

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




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



Re: Form upload and download

2006-09-07 Thread Peter Dawn

cheers mate.

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