Re: WOFileUpload woes (No form data left)? [SOLVED]
Re: WOFileUpload woes (No form data left)? [SOLVED]
- Subject: Re: WOFileUpload woes (No form data left)? [SOLVED]
- From: Brendan Duddridge <email@hidden>
- Date: Fri, 18 Mar 2005 14:57:41 -0700
Title: Re: WOFileUpload woes (No form data left)? [SOLVED]
Hi Scott,
I tried the DIV tag show/hide thing and it had the same problem as before.
HOWEVER!!!! I did find a solution that gets me exactly what I think we both wanted in the first place; having the WOFileUpload on the same page as the radio buttons that show and hide the WOFileUpload depending on the radio button values.
I fixed it by setting the enctype binding on the WOForm to a local String method:
/**
* Change the form encoding so we're using "multipart/form-data" only for
* upload transfer methods. This hopefully prevents a WOFileUpload bug that
* can occur when showing and hiding the WOFormUpload with conditionals.
*
* @author brendan - 18-Mar-2005
* @return the encoding to use for the enctype binding on the WOForm.
*/
public String formEncoding() {
String encoding = null;
if (dataFeed.feedTransferMethod().equals("upload")) {
encoding = "multipart/form-data";
}
return encoding;
}
I’ve tested this in FireFox and Safari. Haven’t tested on IE for Windoze yet though. Hopefully there’s no issues there.
I’ve posted this response to the WODev list in hopes that if someone else has this same issue, they will see the resolution.
Let me know if you encounter any problems with this technique.
Thanks!
___________________________
Brendan Duddridge
ClickSpace Interactive Inc.
Suite L100
239 - 10th Ave SE
Calgary, AB T2G 0V9
Canada
(403) 277-5591
http://www.clickspace.com/
From: Scott Lopatin <email@hidden>
Date: Mon, 7 Feb 2005 09:39:41 -0500
To: Brendan Duddridge <email@hidden>
Subject: Re: WOFileUpload woes (No form data left)?
I haven't tried that, did it work for you?
Thanks,
Scott
On Feb 4, 2005, at 4:37 PM, Brendan Duddridge wrote:
Hi Scott,
Have you tried using _javascript_ and a div tag to hide and show your WOFileUpload? Then, technically the HTML still contains the WOFileUpload, it’s just not displayed to the user depending on the state of the radio button group.
___________________________
Brendan Duddridge
ClickSpace Interactive Inc.
Suite L100
239 - 10th Ave SE
Calgary, AB T2G 0V9
Canada
(403) 277-5591
http://www.clickspace.com/
From: Scott Lopatin <email@hidden>
Date: Fri, 4 Feb 2005 16:13:40 -0500
To: Brendan Duddridge <email@hidden>
Subject: Re: WOFileUpload woes (No form data left)?
Yes I was hiding and showing too based on the radio buttons. Is there any way we can get down to the real problem any closer?
On Feb 4, 2005, at 2:55 PM, Brendan Duddridge wrote:
Hi Scott,
I think the problem is the hiding and showing of the elements based upon the radio button clicks. Not by having the radio buttons there in the first place. I have other pages that have radio buttons, check boxes, text fields, etc. along side multiple WOFileUpload components and they work fine. It’s just in this particular case, I wanted to show and hide the WOFileUpload based upon the onclick handler of the radio buttons.
I’ll probably have to re-design my form to support this too. Ugh!
Thanks for your reply.
___________________________
Brendan Duddridge
ClickSpace Interactive Inc.
Suite L100
239 - 10th Ave SE
Calgary, AB T2G 0V9
Canada
(403) 277-5591
http://www.clickspace.com/
From: Scott Lopatin <email@hidden>
Date: Thu, 3 Feb 2005 09:14:07 -0500
To: Brendan Duddridge <email@hidden>
Subject: Re: WOFileUpload woes (No form data left)?
Brendan,
I had to solve the problem by changing my UI, I put the WOFileUpload on a separate page. I think it had to do with the radio buttons being in the same form changing the display and being nested. I am not happy that I had to change the UI, but now at least the program never fails. I even sent the project to Apple but they had no resolution or suggestion.
It looks like some sort of WO bug. Try the form without the radio buttons, I believe there lies the answer.
Thanks,
Scott
On Feb 2, 2005, at 1:04 PM, Brendan Duddridge wrote:
Hi Scott,
Did you ever solve this problem where when you turn on and off a WOFileUpload component, you get the No form Data Left error?
I’m having the exact same problem. It only happens when I have my WOFileUpload in a conditional that is controlled by clicking on radio buttons in the form and using _javascript_ to submit the form to execute the form’s default action.
Thanks,
___________________________
Brendan Duddridge
ClickSpace Interactive Inc.
Suite L100
239 - 10th Ave SE
Calgary, AB T2G 0V9
Canada
(403) 277-5591
http://www.clickspace.com/
_______________________________________________
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