Etienne,

Thanks, I guess without versions it doesnt make much sense...

Client and Server: WinXP SP2
VM on Client and Server: 1.5.0_08
ULC: 6.1.1

I also checked the Canoo Jira, the deadlock on chooseFile is probably UBA-6982, but for this problem I cant find anything.

Regards
Alex

Etienne Studer wrote:
Hi Alexander

I see.

Regarding your problem, I would post the OS and the JRE version for both
client and server as well as the ULC version. This will help Canoo.

Btw, there was one file chooser problem that I had reported that got
resolved in 6.0.5.

Regards, Etienne

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Alexander Vegh
Sent: Friday, October 13, 2006 2:16 PM
To: [email protected]
Subject: Re: [ULC-developer] ClientContext.chooseFile doesnt work

Hi Etienne

Thanks for the input. The code is a bit misleading.

I use File on the server instead of the filePaths to build a UI with
some settings, after which I get the real file in second roundtrip with
loadFile.

Its a nice encapsulation of a directory & file to pass around and work
with in my servercode, but thats not my problem.

Whats the problem is that I do not get a filechooser-dialog on the
client at all.

I have to add that inside devrunner the Dialog does pop up, but not if
my code really runs in an appserver.

Somebody else in our company using chooseFile gets the dialog the first
time, but the second time the client hangs up completely. So something
with ClientContext.load seems to be special

Regards
Alex

Etienne Studer wrote:
Hi Alexander

I would like to mention that your code does not look like it will work

in a deployed application since you create a file object on the server-side using a path from the client-side (which is typically another machine).

Regards, Etienne



-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Alexander Vegh
Sent: Friday, October 13, 2006 5:30 AM
To: [email protected]
Subject: [ULC-developer] ClientContext.chooseFile doesnt work

Hi

For some reason ClientContext.chooseFile ( ClientContext.loadFile ) do

not work. There is no exception on client or server, no error message.

I have another place in the same program where the same code does work,so I have no idea what am I doing wrong here:

    private void importFiles () {
         FileChooserConfig config = new FileChooserConfig ();

         config.setFileSelectionMode ( FileChooserConfig.FILES_ONLY );
         config.setDialogType ( FileChooserConfig.OPEN_DIALOG );

         IFileChooseHandler loadHandler = new IFileChooseHandler() {

             public void onSuccess ( String filePath ) {

                 File[] files = new File[]{new File(filePath)};
                 m_DocumentsTable.doArchiveFilesWithWizard (files);

             }

public void onFailure ( int reason, String description ) {

             }


         };
         ClientContext.chooseFile (loadHandler,config,this );
     }


I already am using AllPermissionsFileService on the client and all the

jars are signed.

Thanks for any help

Alexander Vegh
Abacus Research


_______________________________________________
ULC-developer mailing list
[email protected]
http://lists.canoo.com/mailman/listinfo/ulc-developer


--
Stop re-inventing the wheel and get on with your day job: cranking out
more bugs, faster
--
_______________________________________________
ULC-developer mailing list
[email protected]
http://lists.canoo.com/mailman/listinfo/ulc-developer


--
Stop re-inventing the wheel and get on with your day job: cranking out more bugs, faster
--
_______________________________________________
ULC-developer mailing list
[email protected]
http://lists.canoo.com/mailman/listinfo/ulc-developer

Reply via email to