• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: WoFileUpload
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: WoFileUpload


  • Subject: Re: WoFileUpload
  • From: "Daniele Corti" <email@hidden>
  • Date: Tue, 12 Dec 2006 09:16:46 +0100



2006/12/12, PS ps <email@hidden>:
Hi,

We are using WOFileUpload to accept files in our
application.

After a post (clicking on the submit button), page is
redisplayed with
any validate errors.

At this point, even though all the other fields still
display the data
that was entered, the WOFileUpload field doesn't
retain the file name.

Any way to ensure that the filename stays in the
field?

Hi, I think the easiest way to do this is to add 2 methods to your java file:

public String uploadedFilePath;

public String uploadedFilePath()
{
return uploadedFilePath;
}

public void setUploadedFilePath(String newUploadedFilePath)
{
uploadedFilePath = newUploadedFilePath;
}

and to your .woo file bind:

FileUpload: WOFileUpload {
size = "20";
filePath = uploadedFilePath;
streamToFilePath = newPath;
}

now you can try to setUploadedFilePath(), in the appendToResponse() method... this should work

Bye,     

--
Daniele Corti
AIM: S0CR4TE5
Messenger: email@hidden
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: WoFileUpload
      • From: Amedeo Mantica <email@hidden>
References: 
 >WoFileUpload (From: PS ps <email@hidden>)

  • Prev by Date: MEETING: Reminder - Chicago - CocoaHeads / CAWUG Tuesday December 12th
  • Next by Date: Receiving Emails
  • Previous by thread: WoFileUpload
  • Next by thread: Re: WoFileUpload
  • Index(es):
    • Date
    • Thread