Welcome to the IBM Collaboration Solutions Community IQJam
UsernamePassword
Reset Password | Register
   
Home | Tags | Help
File Upload/File Download using Managed Beans 
Hi All,
 
I am writing an app that doesn't use a backend Notes DB, but uses a SQL Db as the backend, I am accomplishing via using Managed Beans, This hasn't been a problem, but now I am trying to bind a file upload control to something and I'm not sure what Object Type I should bind it to so that I can use it.  I have tried  com.ibm.xsp.http.UploadedFile, but am having problems.  Any thoughts would be great.  Thanks
 
-Toby

There are 4 answers

1votes

I've have had this working by declaring the file object as:

com.ibm.xsp.component.UIFileUploadEx.UploadedFile

Andy Cunliffe - over 2 years ago | 
Voting
Vote on the answer to show whether you think the answer is correct or useful to the rest of the community.

Answers with more votes are more visible to the rest of the community
1votes

Hi Andy,

I saw your blog post about this, I am having problems using this method, I can't make an instance of that class a member of my class.  I believe the reason is because it is static, can you send me a sample of how you were able to bind this?  Thanks

-Toby

Toby Samples - over 2 years ago | 
Voting
Vote on the answer to show whether you think the answer is correct or useful to the rest of the community.

Answers with more votes are more visible to the rest of the community
0votes

Hi Toby,

 

I've created an example database you can download from here.

Andy Cunliffe - over 2 years ago | 
Voting
Vote on the answer to show whether you think the answer is correct or useful to the rest of the community.

Answers with more votes are more visible to the rest of the community
0votes

Thanks so much Andy,

 

I think I was having some issues with my mental faculties...the problem was I had both

import com.ibm.xsp.component.UIFileuploadEx.UploadedFile;
import com.ibm.xsp.http.UploadedFile;

running and it was giving me an error because of collision.  I was doing everything right, but the imports were colliding.  Thanks for helping me out.  You went above and beyond.  Thanks so much!!!

Toby Samples - over 2 years ago | 
Voting
Vote on the answer to show whether you think the answer is correct or useful to the rest of the community.

Answers with more votes are more visible to the rest of the community

Latest Answers for Domino Development / XPages 

How to call LS agent in xpage
Vijay Kumar - 6 months ago
Multi-values in an xPage view panel column
Judy Kilpinen - 8 months ago
From CSJS refresh a panel dijit.TooltipDialog
daniele grillo - about 1 year ago
How to get value from Repeater Control.
Atul Saxena - about 1 year ago
doing a partial update "beforepageload"
jeroen somhorst - about 1 year ago
How to get value from Repeater Control.
jeroen somhorst - about 1 year ago
How to get value from Repeater Control.
Mervin Thomas - about 1 year ago
Where Would I Delete My Cookie?
Lenni Sauve - over 2 years ago
Query_String value empty with agent URL from xpage
Andy Cunliffe - over 2 years ago
textfield formatting
Ben Poole - over 2 years ago
File Upload/File Download using Managed Beans
Toby Samples - over 2 years ago
File Upload/File Download using Managed Beans
Andy Cunliffe - over 2 years ago

Experts for Domino Development / XPages

There are no experts to display