• 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 and Safari
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: WOFileUpload and Safari


  • Subject: Re: WOFileUpload and Safari
  • From: Greg <email@hidden>
  • Date: Thu, 22 Sep 2005 13:07:02 +1000

I have been able to track down a resolution to this. It seems safari must have a problem with doing "too much" in a form submit handler. I originally had it set the hidden field value, then swap a couple of divs from hidden to show themselves. What I did was put the div stuff in another method and called that method with a delay in the form submission handler.

eg. setTimeout("showDivs();", 200);


And now safari works again. Woohoo.

Greg

On 22/09/2005, at 11:06 AM, Greg wrote:


I have a component that has a single form in it with only 1 WOFileUpload. I am using a hidden iFrame as the target of the upload and the page that gets returned to the iframe calls a javascript method to refresh its parent. It was working fine in Safari and Firefox and then all of a sudden it stopped working with Safari. It is now causing it to have an exception in the WOFileUpload:

ERXNSLogLog4jBridge.java:41 - <com.webobjects.appserver._private.WOComponentRequestHandler>: Exception occurred while handling request:
java.lang.IllegalStateException: <er.extensions.ERXPatcher $DynamicElementsPatches$FileUpload> No form data left for WOFileUpload!
[2005-09-22 10:57:06 EST] <WorkerThread3> java.lang.IllegalStateException: <er.extensions.ERXPatcher $DynamicElementsPatches$FileUpload> No form data left for WOFileUpload!
at com.webobjects.appserver._private.WOFileUpload.takeValuesFromRequest (WOFileUpload.java:183)
at com.webobjects.appserver._private.WODynamicGroup.takeChildrenValuesFro mRequest(WODynamicGroup.java:81)
at com.webobjects.appserver._private.WODynamicGroup.takeValuesFromRequest (WODynamicGroup.java:89)


This is just the top part of the stack trace. I searched the archives and there were other people in the past that were having difficulties with it. I originally was just binding the data binding to an NSData object, but then tried the streaming binding and converted that to an NSData object. Both ways produce the same exception in Safari. I should mention that the form has a hidden field that I set before commencing the upload. It is before the WOFileUpload component. In the upload method I extract that value using the context().request().stringFormValueForKey() call after I have created the NSData object from the stream, as in previous peoples issues, this was suggested as a possible cause.

Would anyone have any other suggestions to try to solve this issue?

Any help is greatly appreciated.

Regards,
Greg

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
40framedphotographics.com


This email sent to 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:
    • AW: WOFileUpload and Safari
      • From: Helge Staedtler <email@hidden>
References: 
 >WOFileUpload and Safari (From: Greg <email@hidden>)

  • Prev by Date: Re: Hang in WOMailDelivery.sendEmail
  • Next by Date: NSDictionary to NSData
  • Previous by thread: WOFileUpload and Safari
  • Next by thread: AW: WOFileUpload and Safari
  • Index(es):
    • Date
    • Thread