WOFileUpload returns null value
WOFileUpload returns null value
- Subject: WOFileUpload returns null value
- From: ".::welemski::." <email@hidden>
- Date: Tue, 18 Apr 2006 13:07:17 +0800
Hi Lists,
This is about WOFileUpload again... :D
Sorry to ask about this again but I can't find any solution
to this problem.
I have to Components;
1. Main
2. ViewPhotoPage
2. SubmitPhotoPage
The Main page has a WOSwitchComponent where the variable
"strPageNameToShow" is bound to. The default page for
WOSwitchComponent to display when the Main page is loaded is the
ViewPhotoPage. There are two submit buttons on the right side Namely
"View photo" and "Submit Photo" which is bound to "actViewPhoto" and
"actSubmitPhoto" respectively.
the code for above mentioned actions are the ff;
actViewPhoto{
strPageNameToShow="ViewPhotoPage";
return null;
}
actSubmitPhoto{
strPageNameToShow="View
return null;
}
The SubmitPhotoPage component has a WOFileUpload where the variables
"fileData" of type NSData, "fileName" of type String and "fileType" of
type String are bound to.
There is also one Submit button where the action "actSubmit" is bound to.
actSubmit{
System.out.println("The name : "+fileName);
System.out.println("The type : "+fileType);
System.out.println("The data : "+fileData");
return null;
}
When I click the submit button the logs displayed that the three
variables that are bound to the WOFileUpload component is null though
the WOForm's "enctype" attribute is set to "multipart/form-data".
Does anyone experienced something like this?
--
-- -- -- -- -- -- -- -- -- -- --
welemski
-- -- -- -- -- -- --
_______________________________________________
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