Hello!
I have a problem. I tried to make a FileChooserDialog open, to
let the user select a directory where to save files.
I have insert this part of code:
btnSelect.addActionListener(new
com.ulcjava.base.application.event.IActionListener() {
public void actionPerformed(
com.ulcjava.base.application.event.ActionEvent e) {
FileChooserConfig
fcConfig = new FileChooserConfig();
fcConfig.setDialogTitle("Select Directory");
fcConfig.setDialogType
( FileChooserConfig.OPEN_DIALOG );
ClientContext.chooseFile(new
IFileChooseHandler(){
public void
onFailure(int reason, String description) {
System.out.println(description);
}
public void
onSuccess(String filePath) {
System.out.println(filePath);
}
},fcConfig,
bpaSettings);
}
});
//End of code
I was expecting that now a File Dialog was open, but nothing is
happen. The Error Message is:
com.ulcjava.base.client.ServiceException: choose file not
supported
at
com.ulcjava.environment.jnlp.client.JnlpFileService.chooseFile(JnlpFileService.java:38)
at
com.ulcjava.base.client.UIChooseClientFileTask.chooseClientFile(UIChooseClientFileTask.java:8)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown
Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown
Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at com.ulcjava.base.client.UIProxy.a(UIProxy.java:148)
at com.ulcjava.base.client.UIProxy.b(UIProxy.java:82)
at
com.ulcjava.base.client.UIProxy.handleRequest(UIProxy.java:203)
at com.ulcjava.base.client.UISession.b(UISession.java:34)
at
com.ulcjava.base.client.UISession.access$1600(UISession.java:265)
at
com.ulcjava.base.client.UISession$1.run(UISession$1.java:2)
at java.awt.event.InvocationEvent.dispatch(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at
com.ulcjava.base.client.FilteringEventQueue.dispatchEvent(FilteringEventQueue.java:5)
at
java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown
Source)
at
java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown
Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)
In the mailing List i have read something about the
AllPermissionsFileService. What is this, and where i have to
activate this.
I think, this is the reason why the dialog not came up!
Thank you!
Florian Marquardt
_______________________________________________
ULC-developer mailing list
[email protected]
http://lists.canoo.com/mailman/listinfo/ulc-developer