Hi,

I've had a similar problem.  It seems as though it happens in Java 6 and not in 
Java 5 (On the client machine).  I've only seen it happen on the server too, 
not using the DevelopmentLauncher.  I still have this problem, so if there is a 
fix I'm interested also.

Our server is running Tomcat 5.5.20, Apache 2.2.4, and Java 5.

Thanks,
Joe

----- Original Message ----
From: Janak Mulani <[EMAIL PROTECTED]>
To: [email protected]; [EMAIL PROTECTED]
Sent: Tuesday, April 24, 2007 10:26:22 AM
Subject: RE: Antwort: RE: [ULC-developer] File Chooser Dialog , open Button has 
no effect

Hi Florian,

Which version of ULC are you using? How are you running your ULC application
on client and server?

I cannot reproduce your problem. Please see the snippet at the end of this
mail.

Kindly modify it to demonstrate your problem.

Thanks and regards,

Janak


>-----Original Message-----
>From: [EMAIL PROTECTED]
>[mailto:[EMAIL PROTECTED] Behalf Of
>[EMAIL PROTECTED]
>Sent: Wednesday, April 18, 2007 5:56 PM
>To: [email protected]
>Subject: Antwort: RE: [ULC-developer] File Chooser Dialog , open Button
>has no effect
>
>
>Hi Etienne!
>
>But i do not want to load the file. I only want to get the Path
>of the File respectively the Folder!
>So i want to use the chooseFile.
>
>My Problem is that the "open-Button" in the chooseFile Dialog has
>no effect. The Button does not copy the path or close the window
>or something else.
>Only if i double click the file, the Path of the File is copied
>and the Dialog get closed,
>
>If there is no solution i will use the loadFile and just close
>the inputstream of the function on sucess.
>
>Thank you
>
>Florian Marquardt
>
>
>
>             "Etienne
>             Studer"
>             <[EMAIL PROTECTED]                                    An
>             s.com>                 <[EMAIL PROTECTED]
>             Gesendet von:          om>,
>             ulc-developer          <[EMAIL PROTECTED]
>             [EMAIL PROTECTED]          om>
>             canoo.com                                     Kopie
>
>                                                           Thema
>             17.04.2007             RE: [ULC-developer] File
>             17:32                  Chooser Dialog , open Button
>                                    has no effect
>
>                 Bitte
>             antworten an
>             ulc-developer
>             @lists.canoo.
>                  com
>
>
>
>
>
>
>Compare ClientContext#chooseFile with ClientContext#loadFile
>
>Etienne
>
>
>
>-----Original Message-----
>From: [EMAIL PROTECTED]
>[mailto:[EMAIL PROTECTED] On Behalf Of
>[EMAIL PROTECTED]
>Sent: Tuesday, April 17, 2007 6:25 AM
>To: [email protected]
>Subject: [ULC-developer] File Chooser Dialog , open Button has no
>effect
>
>
>Hi Community!
>
>I have another question on the FileChooserDialog:
>
>My Source;
>
>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) {
>            getDacDecTfiPath().setValue(filePath);
>      }
>}, fcConfig, bpaSettings);
>
>
>My Problem is the following: The dialog came up and then when  i
>select
>a file and push the Open Button nothing happen! But if I double
>Click
>the File the Path of the file is copied, as wished!
>
>Is this a bug?
>
>Thanks to all!
>
>Florian Marquardt
---------------------------------------


import com.ulcjava.base.application.AbstractApplication;
import com.ulcjava.base.application.ClientContext;
import com.ulcjava.base.application.ULCButton;
import com.ulcjava.base.application.ULCFrame;
import com.ulcjava.base.application.event.ActionEvent;
import com.ulcjava.base.application.event.serializable.IActionListener;
import com.ulcjava.base.application.util.IFileChooseHandler;
import com.ulcjava.base.development.DevelopmentRunner;
import com.ulcjava.base.shared.FileChooserConfig;

public class FileChooserSnippet extends AbstractApplication {
    public void start() {
        ULCFrame frame = new ULCFrame("FileChooserSnippet");
        frame.setDefaultCloseOperation(ULCFrame.TERMINATE_ON_CLOSE);
        final ULCButton chooseButton = new ULCButton("Choose");
        chooseButton.addActionListener(new IActionListener() {
            public void actionPerformed(ActionEvent event) {
                FileChooserConfig config = new FileChooserConfig();
                config.setDialogTitle("Select Dir");
                config.setDialogType(FileChooserConfig.OPEN_DIALOG);
                try {
                    ClientContext.chooseFile(new IFileChooseHandler() {
                        public void onSuccess(String filePath) {
                            System.out.println("chose " + filePath);
                        }

                        public void onFailure(int reason, String
description) {
                            System.out.println("choose operation not
performed (" + description + ")");
                        }
                    }, config, chooseButton);
                } catch (Exception ignored) {
                }
            }
        });


        frame.getContentPane().add(chooseButton);
        frame.setVisible(true);
    }

    public static void main(String[] args) {
        DevelopmentRunner.setApplicationClass(FileChooserSnippet.class);
        DevelopmentRunner.main(args);
    }
}

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






__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

Reply via email to