Re(2): WOFileUpload - No form data left for WOFileUpload!
Re(2): WOFileUpload - No form data left for WOFileUpload!
- Subject: Re(2): WOFileUpload - No form data left for WOFileUpload!
- From: "Robert Snyder" <email@hidden>
- Date: Sun, 18 Apr 2004 19:28:15 -0400
I had a similar problem with WOFileUpload a few weeks back and posted
this to the lists. \
Chuck, et al,
We finally figured this one out. The issue came up due to a change in how
WOFileUpload works in 5.2.2. WO 5.2.2 had some changes made to
WOFileUpload where if the binding 'enctype' is set to "multipart/form-
data" but there's no WOFileUpload present inside the form, it now throws
a NullPointerException.
We have this binding present in the WOForm in StudentRegistrationPage.wo.
which is the page that is called after the create a new UserID page is
completed. The reason that we had this in the StudentRegistrationPage.wo.
was because this component has a child component, which may or may not
have a WOFileUpload. Since before 5.2 having this binding was absolutely
harmless if there's no WOFileUpload, we had added it for the case when a
WOFileUpload was needed in one of the forms.
Since we never did implement a file up load in the rest of the
application, our solution is to remove the binding
'enctype="multipart/form-data"' from the WOForm in the component
StudentRegistrationPage.wo
Hope this helps someone else who is bring an application forward from
earlier versions of WO.
Cheers.
Robert
On Sun, Apr 18, 2004, Hunter Hillegas wrote:
>I did do a cursory search in Apple's semi-worthy archive (come on guys,
>can we get a better search tool?)...
>
>I think I'm hot on the cause now, I'll report back with what I find...
>
>On Apr 18, 2004, at 11:00 AM, Chuck Hill wrote:
>
>> Are you using any conditionals that are hiding one or the other form?
>> Are
>> you doing anything with the request? Have you searched the Apple wo-dev
>> archives? They are no available to Google so a Google search is of no
>> use.
>>
>> Chuck
>>
>> At 10:47 AM 18/04/2004 -0700, Hunter Hillegas wrote:
>>> I just tried IE and it fails as there as well...
>>>
>>> So, it is failing on IE and Safari, the only two I have tested.
>>>
>>> On Apr 17, 2004, at 5:18 PM, Radwar wrote:
>>>
>>>> Which browser? Does it work on IE and fails on Safari/Mozilla?
>>>>
>>>>
>>>> On Apr 17, 2004, at 7:12 PM, Hunter Hillegas wrote:
>>>>
>>>>> I have a component that has two WOForms, each contains a separate
>>>>> WOFileUpload element.
>>>>>
>>>>> When I try to submit either form (they submit to distinct actions),
>>>>> I
>>>>> get the following stack trace:
>>> _______________________________________________
>>> webobjects-dev mailing list | email@hidden
>>> Help/Unsubscribe/Archives:
>> http://www.lists.apple.com/mailman/listinfo/webobjects-dev
>>> Do not post admin requests to the list. They will be ignored.
>>>
>>>
>>
>> --
>>
>> Chuck Hill email@hidden
>> Global Village Consulting Inc.
>> http://www.global-village.net
>_______________________________________________
>webobjects-dev mailing list | email@hidden
>Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/
>webobjects-dev
>Do not post admin requests to the list. They will be ignored.
>
>
____________________________________________
Robert Snyder, Director
World Campus Data Management Services
The Pennsylvania State University
105 Mitchell Building
University Park PA 16802
Phone: 814-865-0912 Fax: 814-865-4406
E-mail: email@hidden
URL: http://www.worldcampus.psu.edu/my.campus
_______________________________________________
webobjects-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/webobjects-dev
Do not post admin requests to the list. They will be ignored.