Hi Michael,
Loading a whole directory to the server side is not supported (as
specified in Javadoc of 'ClientContext.loadFile').
BUT directory selection is, of course, possible. In this case, you
will use 'ClientContext.chooseFile'. Did you
make here by chance a confusion? Best regards,
christian
--
Canoo - Your Solution Provider for Rich Internet Applications
Christian Ribeaud
Canoo Engineering AG
Kirschgartenstrasse 5
CH-4051 Basel
Tel: +41 61 228 94 44
Fax: +41 61 228 94 49
[email protected]
http://www.canoo.com/
On Nov 10, 2009, at 6:03 PM, Michael Hilken wrote:
hi @,
has anybody an idea how to create a Directory Chooser with ULC ?
private void directoryChooser(File fileDir, ULCButton button,
ULCTextField txfPath) {
String dirName = null;
FileChooserConfig chooser = new FileChooserConfig();
if(fileDir != null && fileDir.exists())
chooser.setCurrentDirectory(fileDir.getAbsolutePath());
chooser.setDialogTitle("Select Import File");
chooser.setFileSelectionMode(FileChooserConfig.DIRECTORIES_ONLY);
chooser.setDialogType(FileChooserConfig.OPEN_DIALOG);
MyFileHandler mfh = new MyFileHandler(txfPath);
ClientContext.loadFile(mfh, chooser, button);
}
this if I use throws an exception "directories are not supported"
thx for any help
_______________________________________________
ULC-developer mailing list
[email protected]
http://lists.canoo.com/mailman/listinfo/ulc-developer