Hi Stuart, Thanks for pointing out the problem.
It will be fixed in the upcoming 6.2 release. Thanks also for trying out the milestone. Thanks and regards, Janak >-----Original Message----- >From: [EMAIL PROTECTED] >[mailto:[EMAIL PROTECTED] Behalf Of Stuart Booth >Sent: Wednesday, August 22, 2007 7:42 PM >To: [EMAIL PROTECTED] >Subject: [ULC-developer] ClientContext.chooseFile failure > > >It seems that the change for multiple files in the file dialogs has broken >ClientContext.chooseFile when the user selects a non-existent file (such as >when saving a new file). > >This code demonstrates what I mean: > > ULCComponent owner = null; > FileChooserConfig fcConfig = new FileChooserConfig(); > fcConfig.setDialogTitle("Save Project"); >fcConfig.setApproveButtonText("Save"); > > ClientContext.chooseFile(new IFileChooseHandler() { > public void onSuccess(String[] filePaths, String[] fileNames) { > System.out.println("SUCCESS"); > } > > public void onFailure(int reason, String description) { > String sMessage; > > if (reason == IFileChooseHandler.CANCELLED) > sMessage = "Open Canceled"; > else > sMessage = "Open Failed: " + description; > > System.out.println(sMessage); > } > }, fcConfig, owner); > >When an existing file is selected and the "Save" button clicked, the >onSuccess method is called; if a new filename is entered and the "Save" >button clicked, the onFailure method is called with a Cancelled value. > >I would apperciate any workrounds you can give. > >Thanks. >-Stuart Booth (Abacus Research) > >_______________________________________________ >ULC-developer mailing list >[email protected] >http://lists.canoo.com/mailman/listinfo/ulc-developer _______________________________________________ ULC-developer mailing list [email protected] http://lists.canoo.com/mailman/listinfo/ulc-developer
