Thanks, that helps! Gjivo
-----Original Message----- From: Janak Mulani [mailto:[EMAIL PROTECTED] Sent: 13. ožujak 2007 12:04 To: Gjivo Tikvica Cc: [email protected] Subject: RE: [ULC-developer] Problem with filePath in ClientContext.loadfile Hi Gjivo; You are right! The filePath is null becuase JNLP's FileService does not support file path, it has file name. Perhaps ULC could have returned just the file name, but it is returning null. You can see the filePath in case you run ULCSet as an Applet. If you need full FilePath you can do the following: 1. Write your own Custom JNLP Launcher by extending DefaultJnlpLauncher 2. set AllPermissionsFileService() instead of the default JNLPFileService: public UISession start(IConnector arg0, Properties arg1) { ClientEnvironmentAdapter.setFileService(new AllPermissionsFileService()); return super.start(arg0, arg1); } 3. Sign ALL Jars 4. Give full security permission in the .jnlp file: <security> <all-permissions/> </security> I hope this helps. Thanks and regards, Janak >-----Original Message----- >From: [EMAIL PROTECTED] >[mailto:[EMAIL PROTECTED] Behalf Of Gjivo Tikvica >Sent: Tuesday, March 06, 2007 4:16 PM >To: [email protected]; [email protected] >Subject: [ULC-developer] Problem with filePath in ClientContext.loadfile > > >When I start JNLP in Tomcat I cant get filePath of file selected in Dialog. >I got null instead of path file on client side. > >Do you have any suggestion about that? > >When I start ULCSet application on Canoo web site, same happends after I >tried to Save local file in FileDialog tab, function SetResultField returns >always 'text saved to null'. > >I signed all jars, I put : > ClientEnvironmentAdapter.setFileService(new >AllPermissionsFileService()) on jnlp custom launcher > >I all add security all permissions on jnlp file. I use ULC 6.1.2. > > > > ClientContext.loadFile(new IFileLoadHandler() { > public void onSuccess(InputStream in, String >filePath) { > ulcTestField.setText(filePath); > ... > } > public void onFailure(int reason, String >description) { > } > }, config, null); > >-- >No virus found in this outgoing message. >Checked by AVG Free Edition. >Version: 7.5.446 / Virus Database: 268.18.7/711 - Release Date: 5.3.2007 >9:41 > > >_______________________________________________ >ULC-developer mailing list >[email protected] >http://lists.canoo.com/mailman/listinfo/ulc-developer -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.5.446 / Virus Database: 268.18.10/720 - Release Date: 12.3.2007 19:19 -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.5.446 / Virus Database: 268.18.10/720 - Release Date: 12.3.2007 19:19 _______________________________________________ ULC-developer mailing list [email protected] http://lists.canoo.com/mailman/listinfo/ulc-developer
