JOptionPane handling problem

Hi all,
I'm imlementing a GUI using JPanel and paintComponent(Graphics g).
When i have to display some data on the screen i use JOptionPane.showMessageDialog(...) and the data are displayed.
The problem is that, when i close the Message Dialog, it doesn't completely disappear from the screen and so my screen is being messed up. I think it has to do with the graphic environment but i can't figure out what exactly is the problem.
Thanks,
John.

I'm imlementing a GUI using JPanel and
paintComponent(Graphics g).
When i have to display some data on the screen i use
JOptionPane.showMessageDialog(...) and the data are
displayed.hello John,
are you invoking JPanel's paintComponent ?public void paintComponent(Graphics g)
      super.paintComponent(g);
      //your painting stuff...
}Not calling JPanel's paintComponent can cause background-painting problems.
regards,
Tim

Similar Messages

  • Exception Handling Problem In BPM

    All
    I am facing an exception handling problem I am using BPM and , I have caught exception in the transformation step but when there is any data problem in that mapping(mentioned in the transformation)
    it is not throwing the exception . is there any option to collect these type of system exception in  the bpm and give a alert thru mail
    is there any way to collect these type of exception happened in the BPE and raise alert thru generic alert
    Thanks
    Jayaraman

    Hi Jayaraman,
        When you say there is any data problem, does that fail the message mapping that you have defined?
    If the message mapping used in the tranformation fails, it should raise an exception in the BPM.
    Did you test the message mapping using the payload and see if it really fails or not?
    Regards,
    Ravi Kanth Talagana

  • GUI event handling problems appear in 1.4.1 vs. 1.3.1?

    Hi,
    Has anyone else experienced strange event handling problems when migrating from 1.3.1 to 1.4.1? My GUI applications that make use of Swing's AbstractTableModel suddenly don't track mouse and selection events quickly anymore. Formerly zippy tables are now very unresponsive to user interactions.
    I've run the code through JProbe under both 1.3 and 1.4 and see no differences in the profiles, yet the 1.4.1 version is virtually unusable. I had hoped that JProbe would show me that some low-level event-handling related or drawing method was getting wailed on in 1.4, but that was not the case.
    My only guess is that the existing installation of 1.3.1 is interfering with the 1.4.1 installation is some way. Any thoughts on that before I trash the 1.3.1 installation (which I'm slightly reluctant to do)?
    My platform is Windows XP Pro on a 2GHz P4 with 1GB RAM.
    Here's my test case:
    import javax.swing.table.AbstractTableModel;
    import javax.swing.*;
    import java.awt.*;
    public class VerySimpleTableModel extends AbstractTableModel
    private int d_rows = 0;
    private int d_cols = 0;
    private String[][] d_data = null;
    public VerySimpleTableModel(int rows,int cols)
    System.err.println("Creating table of size [" + rows + "," + cols +
    d_rows = rows;
    d_cols = cols;
    d_data = new String[d_rows][d_cols];
    int r = 0;
    while (r < d_rows){
    int c = 0;
    while (c < d_cols){
    d_data[r][c] = new String("[" + r + "," + c + "]");
    c++;
    r++;
    System.err.println("Done.");
    public int getRowCount()
    return d_rows;
    public int getColumnCount()
    return d_cols;
    public Object getValueAt(int rowIndex, int columnIndex)
    return d_data[rowIndex][columnIndex];
    public static void main(String[] args)
    System.err.println( "1.4..." );
    JFrame window = new JFrame();
    window.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
    JPanel panel = new JPanel();
    Dimension size = new Dimension(500,500);
    panel.setMinimumSize(size);
    panel.setMaximumSize(size);
    JTable table = new JTable(new VerySimpleTableModel(40,5));
    panel.add(table);
    window.getContentPane().add(panel);
    window.setSize(new Dimension(600,800));
    window.validate();
    window.setVisible(true);
    Thanks in advance!!
    - Dean

    Hi,
    I've fixed the problem by upgrading to 1.4.1_02. I was on 1.4.1_01.
    I did further narrow down the symptoms more. It seemed the further the distance from the previous mouse click, the longer it would take for the table row to highlight. So, clicking on row 1, then 2, was much faster than clicking on row 1, then row 40.
    If no one else has seen this problem -- good! I wouldn't wish the tremendous waste of time I've had on anyone!
    - Dean

  • Labview slider event handling problems - revisited

    This topic asked a question that was very close to a problem I am having:
    Labview slider event handling problems
    That is, how do I, using an event structure and/or other means, only read out the value of a slider control after the value change is finalized?
    The extra constraint I'd like to place on this, which I believe will invalidate the answer given in the thread above, is that my slider control also has a digital display which can also be used to change the value without ever using the mouse. I cannot look for a value change followed by a mouse-up event if the mouse was not used to change the value.
    Any ideas how this might be accomplished? FWIW, I am using LabVIEW 7.0

    Each and every incremental value-change event generated by the movement of the slider is still detected and queued up for use by the event structure and the event structure loop wades through them all before it's done.
    I have come up the attached "fix" (LV v7.0) for this problem. While it is not as clean a solution as I had hoped it would be, it's the best I can manage given what LabVIEW offers me to work with and it does work in the situation where I need to use it.
    Now, within the Finalize Slider Events subVI, I'm keeping track of the most-recent values seen by the subVI, checking to see if they have changed, and reporting out that fact. That gives me a Changed/Not-Changed bit within the event case that I can use to control what code then gets executed. If the event case is just playing catch-up to the real value of the control, I can now see that fact and ignore it.
    In this version I've also dumped the variant output and limited the VI to using DBL values. I decided it added complication to something that was too complicated already and I wanted the output terminals for other purposes anyway (reporting of the correct "OldVal" of the control).Message Edited by Warren Massey on 04-28-2005 03:56 AM
    Attachments:
    slider_events[5].llb ‏77 KB

  • Delicate ProgressMonitor/ event handling problem

    Hi,
    I have a delicate ProgressMonitor / event handling problem.
    There exists some solution on similiar problems here in the forums, but no solution to my special problem, hope anybody can help me out.
    I have a rather big project, an applet, that I've written a separate JarLoader class that will load specific jar's if the ClassLoader encounter a unloaded class, all ok so far.
    But, during loading, I would like to display a ProgressBar. And here is the problem. If my custom ClassLoader intercepts a findClass -request that needs to load the class from a jar from a normal thread, this is no problem, but if the ClassLoader intercepts a findClass that needs loading a jar when inside the EventQueue -thread, this is becomming tricky!
    The catch is that an event posted on the EventQueue finally needs a class that needs to be loaded, but I cannot dispatch a thread to do this and end that particular event before the class itself is loaded.
    So how do I hold the current EventQueue -event needing a jar -load, Pop up a ProgressBar, then process events in the EventQueue to display the ProgressBar and update repaints in it? then return from the event that now have loaded needed class-files.
    I've tried a tip described earlier in the forums by trying to handle events with this code when loading the Jar:
        /** process any waiting events - use during long operations
         * to update UI */
        static public void doEvents() {
            // need to derive from EventQueue otherwise
            // don't have access to protected method dispatchEvent()
            class EvtQueue extends java.awt.EventQueue {
                public void doEvents() {
                    Toolkit toolKit = Toolkit.getDefaultToolkit();
                    EventQueue evtQueue = toolKit.getSystemEventQueue();
                    // loop whilst there are events to process
                    while (evtQueue.peekEvent() != null) {
                        try {
                            // if there are then get the event
                            AWTEvent evt = evtQueue.getNextEvent();
                            // and dispatch it
                            super.dispatchEvent(evt);
                        catch (java.lang.InterruptedException e) {
                            // if we get an exception in getNextEvent()
                            // do nothing
            // create an instance of our new class
            EvtQueue evtQueue = new EvtQueue();
            // and call the doEvents method to process the events.
            evtQueue.doEvents();       
        }Then, the loader checks
    java.awt.EventQueue.isDispatchThread()to see if its' inside the eventqueue, and runs doEvents after updating the ProgressMonitor with new setProgress and setNote values.
    More precise;
    The loader is loading the jar like this:
    (this is pseudo code, not really usable, but outlines the vital parts)
    public void load() {
      monitor = new ProgressMonitor(null, "Loading " + jarName, ""+jarSize + " bytes", 0, jarSize);
      monitor.setMillisToDecideToPopup(0);
      monitor.setMillisToPopup(0);
      // reading jar info code here ...
      JarEntry zip = input.getNextJarEntry();
      for (;zip != null;) {
         // misc file handling here... total = current bytes read
         monitor.setProgress(total);
         monitor.setNote(note);
         if (java.awt.EventQueue.isDispatchThread()) {
            doEvents();
         zip = input.getNextJarEntry();
      monitor.close();
    }When debugging doEvents(), there is never any events pending in peekEvents(), even if I tries to put a invokeLater() to run the setProgress on the monitor, why? If it had worked, the doEvents() code would have saved my day...
    So, this is where I'm totally stuck...

    Just want to describe how I did this using spin from http://spin.sourceforge.net
    This example is not pretty, but it can probably help others understanding spin. Cancelling the ProgressMonitor is not implemented, but can easily be done by checking on ProgressMonitor.isCanceled() in
    the implementation code.
    First, I create a bean for displaying and run a ProgressMonitor:
    Spin requires an Interface and an Implementation, but that's just nice programming practice :-)
    import java.util.*;
    public interface ProgressMonitorBean {
        public void start(); // start spinning
        public void cancel(); // cancel
        public int getProgress(); // get the current progress value 
        public void setProgress(int progress); // set progress value
        public void addObserver(Observer observer); // observer on the progressValue
    }Then, I created the implementation:
    import java.util.*;
    import javax.swing.ProgressMonitor;
    import java.awt.*;
    public class ProgressMonitorBeanImpl extends Observable implements ProgressMonitorBean {
        private ProgressMonitor monitor;
        private boolean cancelled;
        private int  progress = 0;
        private int  currentprogress = 0;
        public ProgressMonitorBeanImpl(Component parent, Object message, String note, int min, int max) {
            monitor = new ProgressMonitor(parent, message, note, min, max);
            monitor.setMillisToDecideToPopup(0);
            monitor.setMillisToPopup(0);       
        public void cancel() {
            monitor.close();
        public void start() {
            cancelled = false;
            progress = 0;
            currentprogress = 0;
            while (progress < m_cMonitor.getMaximum()) {
                try {
                    synchronized (this) {
                        wait(50); // Spinning with 50 ms delay
                    if (progress != currentprogress) { // change only when different from previous value
                        setChanged();
                        notifyObservers(new Integer(progress));
                        monitor.setProgress(progress);
                        currentprogress = progress;
                } catch (InterruptedException ex) {
                    // ignore
                if (cancelled) {
                    break;
        public int getProgress() {
            return progress;
        public void setProgress(int progress) {
            this.progress = progress;
    }in my class/jarloader code, something like this is done:
    public void load() {
      ProgressMonitorBean monitor = (ProgressMonitorBean)Spin.off(new ProgressMonitorBeanImpl(null, "Loading " + url,"", 0, jarSize));
      Thread t = new Thread() {
        public void run() {
          JarEntry zip = input.getNextJarEntry();
          for (;zip != null;) {
            // misc file handling here... progress = current bytes read
         monitor.setProgress(progress);
      t.start(); // fire off loadin into own thread to do time consuming work
      monitor.start(); // this will spin events on monitor and block until progress = max
      monitor.cancel(); // Just make sure ProgressMonitor is closed
    }The beautiful thing here is that Spin is taking care of weither the load() is inside the dispatch thread or not, making the code much simpler and cleaner to understand.
    The ProgressMonitorBeanImplementation could been made much nicer and more complete, but I was in a hurry to check if it worked out. And it did! This will be applied on a lot of gui -components that blocks the event-queue in our project, making it much more responsive.
    Hope this will help others in similiar situations! Thanks again svenmeier for pointing me to the spin -project.

  • Button event handler problem

    Hello,
    I need to add an Event handler to a button on my JSP page. The page refreshes very three seconds for other use.
    First, I added the following segment to the page.
    <head>
    <title>Event handler test</title>
    <script type="text/javascript">
    <!--
    function funAdd()
    alert("Your name is already in the list.");
    //-->
    </script>
    <meta http-equiv="refresh" content="3">
    </head>
    <input type = "button" name = "add" value = "Add" onclick="funAdd()" />
    Every time I clicked the Add button, the alert message appeared. It showed the expected result.
    Then, I replaced alert("Your name is already in the list."); with
    <%
    JOptionPane.showMessageDialog(null, "Your name is already in the list.", "Error message", JOptionPane.ERROR_MESSAGE);
    %>
    in funAdd().
    But, the error message showed automatically every three seconds when the page refreshed without clicking the Add button.
    Does any one know the reason, and how to solve the problem?
    Thanks in advance.
    Dan

    You said it yourself, you refresh your page each 3 seconds so each 3 seconds you do a request to your server where you show a messagedialog.

  • Request.getParameter(): special character handling problem

    Hello, there:
    This should be an easy question for the gurus in here.
    I use a string attached to the url as the parameter string, which includes spaces. the system automatically converts them to %20, but when I receive them in my servlet using request.getParameter, a special character, &Acirc; appears; I couldn't proceed with it.
    I suppose this is a common problem but seems that I didn't find topics about it on this forum.
    So anyone can help? Any encoder/decoder APIs to handle it?
    Thanks a lot,
    Sway

    hi,
    escape can solve ur problem
    use js function to submit form like
    function subForm()
    var any_spcl_value ="kdfhjdf$%@#$% 2FGSFG @%@#%@# V";
    mainForm.action = "index.jsp?value="+ escape(any_spcl_value);
    mainForm.submit();
    and use request.getParameter("value");
    u ll get kdfhjdf$%@#$% 2FGSFG @%@#%@# V as it is.
    AE

  • BSP extension "download" - event handling problem

    Folks,
    First of all, I apologize if the answer is already out there, but I spent quite some time to find the solution for my problem but finally gave up:
    I implemented the Download extension from Brian's and Tom's book. Since I am using an MVC based app, I put the event handling in the DO_HANDLE_EVENT of a controller instead of the OnInputProcessing event of a page. Here's how my app is designed:
    I have a main controller that has an execute button to trigger a data selection based on some selection criteria. The result of this selection is displayed by means of a subcontroller with tableviews that are wrapped into my “zdownload” extension. Everything works fine: I make my selections, execute the app through the button of the main controller and get my result shown in the tableviews. I push the download icon, select my file format (XLS, HTML etc), get the dialog to choose whether to download or to display the file, perfect!
    But now – after I processed the download successfully - if I click the execute button in the main controller again, I still get the download dialog. It looks like the created event for the download does not get cleared. As I mentioned, I searched through SDN, but all I found were referrals to the call of DISPATCH_INPUT( ) in DO_REQUEST of the main controller, but unfortunately this one is already implemented.
    Any ideas?
    Thanks,
    Guenther

    There is an attribute of the download extension called display_url. You pass a value to the extension telling it what cached URL contains the binary content for your download.  if this display_url attribute has a value assigned to it, then the element will render an iFrame to call the URl.  However if the display_url attribute is empty, it won't render the iFrame.  I suspect that you have a stateful application and after your download event you aren't clearing whatever field that you pass into the display_url attribute.

  • Event handler problems

    Hi,
    I'm having problems with a event handler that I'm trying to create.
    I currently have 2 event handlers, one of which needs to only happen when Shift + a key is pressed. I currently have:
    function keypressedHandler(event:KeyboardEvent):void {      if ((event.shiftKey) + (event.keyCode == 81)) {        //something would happen      } } 
    So my question is how can I get the shift function to work? It doesn't matter if it isn't shift but Alt or Ctrl would be the alternatives.
    Any help would be great,
    Thanks,

    You need the ampersand (&) instead of the plus sign to use the logical AND:
    stage.addEventListener( KeyboardEvent.KEY_DOWN, keypressedHandler )
    function keypressedHandler(event:KeyboardEvent):void
        if ((event.shiftKey) && (event.keyCode == 65))
            //something would happen     
            trace( "shift and 65" )

  • JOptionPane blocking problem

    I have the following code in my 1.4.1 applet:
    int response = JOptionPane.showConfirmDialog(NewJabber.mainFrame,"Receive message from unregistered user: "+jid.getName()+" over the "+JID.SHOWNAMES[jid.getHostType()]+" transport. Accept and add user to roster?","Message Received",JOptionPane.YES_NO_OPTION,JOptionPane.WARNING_MESSAGE);
    if(response == JOptionPane.YES_OPTION){
    The dialog seems to work like a charm, but after it's been open for about 3 seconds, it somehow enters an infinite loop because IE starts to use 100% of my processor. I don't want users to have their computer DRASTICALLY slow until they respond to the dialog.(which does work and stops the processor usage)
    this only seems to be a problem with showConfirmDialog(). The following code works fine and so do my classes that extend JDialog.
    public static String getInput(String show){
    return JOptionPane.showInputDialog(show);
    }

    I assume you mean: JOptionPane.showConfirmDialog(this, ...)
    problem is that 'this' isn't a Component.

  • JOptionPane showConfirmDialog problem

    Hello everyone,
    I have written my own class that shows a customized confirm dialog (code is pasted below). I need to be able to tell whether the user clicks "YES", "NO" or "CANCEL".
    My main app has a panel with a JButton "Start System". When this button is clicked, the following code instantiates OperatorConfirmDialog:
         public void startNetwork(){
              confirmDialog = new OperatorConfirmDialog("Are you sure you want to start the network?");
              System.out.println("WE MADE IT TO HERE");//problem we do not get to here until confirm dialog acked
         }I referred to the examples for JOptionPane given at:
    http://java.sun.com/j2se/1.5.0/docs/api/index.html
    for examples but it doesn't seem to be working for me.
    Here is the code for OperatorConfirmDialog
    public class OperatorConfirmDialog extends JFrame {
         JOptionPane pane;
         public OperatorConfirmDialog(String message){
              pane = new JOptionPane();
              this.setDefaultLookAndFeelDecorated(true);
              this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
              this.getContentPane().setLayout(new BorderLayout());
              pack();
              //pane.getSelectionValues()
              pane.showConfirmDialog(this, message, "Confirm", JOptionPane.YES_NO_CANCEL_OPTION);
              Object selectedValue = pane.getValue();  //problem here
              if(selectedValue == null){
                   //do nothing...they just killed window
              }else {
                   for(int counter = 0, maxCounter = pane.getOptions().length; counter < maxCounter; counter++){
                        if(pane.getOptions()[counter].equals(selectedValue)){
                             //do something
              this.dispose();
         public JOptionPane getPane(){
              return pane;
         public static void main(String[] args) {
              OperatorConfirmDialog dialog = new OperatorConfirmDialog("Please enter a valid username.");
    }I put a break point at the line:
    if(selectedValue == null){
    When I run the debugger, confirmDialog prompts me to click "YES", "NO" or "CANCEL". I click "YES" and then arrive at the breakpoint. But, selectedValue doesn't seem to have the right value....the debugger says its value is "uninitializedValue" (literally). Any ideas?
    Thanks!

    Try this. Notice I received an int result from the showConfirmDialog() method.
    import javax.swing.*;
    import java.awt.*;
    public class OperatorConfirmDialog extends JFrame {
        JOptionPane pane;
        public OperatorConfirmDialog(String message) {
            pane = new JOptionPane();
            this.setDefaultLookAndFeelDecorated(true);
            this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
            this.getContentPane().setLayout(new BorderLayout());
            pack();
    // get the response from the user
            int result = pane.showConfirmDialog(this, message, "Confirm", JOptionPane.YES_NO_CANCEL_OPTION);
            if (JOptionPane.YES_OPTION == result) {
                // do what you want on 'yes' clicked
                System.out.println("User Clicked 'Yes'.");
            } else {
    // user clicked 'no' or 'cancel'... you could check result for JOptionPane.NO_OPTION or CANCEL_OPTION
                System.out.println("User Clicked either 'No' or 'Cancel'.");
            this.dispose();
        public JOptionPane getPane() {
            return pane;
        public static void main(String[] args) {
            OperatorConfirmDialog dialog = new OperatorConfirmDialog("Please enter a valid username.");
    }

  • Inheritance and mouse handler problem

    I have a super class and two subclass which is extend the super class. I add a mouse handler in one of the subclass. The problem is that the other subclass also affect by the mouse handler. How can i avoid that??
    here is the code
    public abstract class SketchView extends JPanel implements Observer, Constants, ActionListener, Printable, Pageable
    public SketchView(Sketcher theApp, SketchModel sketcherModel)
    this.sketcherModel = sketcherModel;
    this.theApp = theApp;
    public static class DocView extends SketchView
    public DocView(Sketcher theApp, SketchModel sketcherModel)
    super(theApp, sketcherModel);
    MouseHandler handler = new MouseHandler();
    class MouseHandler extends MouseInputAdapter
    public static class ReportView extends SketchView
    public ReportView(Sketcher theApp, SketchModel sketcherModel)
    super(theApp, sketcherModel);

    to: marsian27
    thank for you reply
    here is the code
    public abstract class SketchView extends JPanel implements Observer, Constants, ActionListener, Printable, Pageable
    public SketchView(Sketcher theApp, SketchModel sketcherModel)
    this.sketcherModel = sketcherModel;
    this.theApp = theApp;
    public static class DocView extends SketchView
    public DocView(Sketcher theApp, SketchModel sketcherModel)
    super(theApp, sketcherModel);
    MouseHandler handler = new MouseHandler();
    addMouseListener(handler;          addMouseMotionListener(handler);
    class MouseHandler extends MouseInputAdapter
    public static class ReportView extends SketchView
    public ReportView(Sketcher theApp, SketchModel sketcherModel)
    super(theApp, sketcherModel);

  • ColdFusion.Ajax.submitForm error handler problem with AppleWebKit-based browsers

    All-
    When using an AppleWebKit-based browser (i.e. Safari or
    Chrome), the
    message argument of the Coldfusion.Ajax.submitForm error
    handler always contains the string "OK", regardless of what error
    was cfthrown by my CFM form handler.
    Recall that the signature for the error handler is this:
    MyFormErrorHandler = function( code, message )
    In other browsers (i.e. IE or Firefox), the
    message argument of the error handler properly contains the
    message that was cfthrown by my form handler.
    Can anyone offer any guidance for this problem? Thanks in
    advance for your help.
    -Josh

    I was testing on IE8, Windows7 Starter.  I don't have IE6 available to test on.  Can test on IE7 a bit later on, but I have to fart-arse around with a VM to get it ready, so I'll do that after work.
    I tested multiple submits both via clicking between the tabs within one main "request" as well as multiple entire requests (like via refreshing the whole browser window).  I had no problems.
    I think you're being quite optimistic ot expect AJAX stuff to work reliably on IE6.  IE6 crashes.  That's what it's most famous for doing.  One needs to expect crashes if one pushes it (push it anywhere than out the window, that is).  And your client company's IT dept should be lined up against a wall and shot for still running it.  That's professionally negligent IMO.  But... you probably don't need to be told that.
    Adam

  • Web Service and result handler problem

    Hi!
    I load WSDL file and then invoke addnumbers() method without
    problems. But I don't get any results. resultHandler and
    faultHandler silent after addnumbers invoke. Where is the
    problem???
    My code:
    public function useWebService():void {
    WS = new WebService();
    WS.wsdl = "................?wsdl"
    WS.addEventListener("load", loadHandler);
    WS.addEventListener("fault",faultHandler);
    WS.useProxy = false;
    WS.loadWSDL();
    WS.addnumbers.addEventListener("result", resultHandler);
    WS.addnumbers.addEventListener("fault", faultHandler);
    public function loadHandler(event:LoadEvent):void {
    Alert.show("WSDL is loaded");
    WS.addnumbers(2,5);
    public function resultHandler(event:ResultEvent):void {
    Alert.show("in result handler");
    myTextArea.text = event.result.toString();
    public function faultHandler(event:FaultEvent):void {
    Alert.show("fault: "+ event.toString());
    My WSDL:
    <?xml version="1.0" encoding="UTF-8"?><definitions
    xmlns="
    http://schemas.xmlsoap.org/wsdl/"
    xmlns:tns="urn:TestWebservice/wsdl"
    xmlns:ns2="urn:TestWebservice/types" xmlns:xsd="
    http://www.w3.org/2001/XMLSchema"
    xmlns:soap="
    http://schemas.xmlsoap.org/wsdl/soap/"
    name="TestWebservice" targetNamespace="urn:TestWebservice/wsdl">
    <types>
    <schema xmlns="
    http://www.w3.org/2001/XMLSchema"
    xmlns:tns="urn:TestWebservice/types" xmlns:soap11-enc="
    http://schemas.xmlsoap.org/soap/encoding/"
    xmlns:xsi="
    http://www.w3.org/2001/XMLSchema-instance"
    xmlns:wsdl="
    http://schemas.xmlsoap.org/wsdl/"
    targetNamespace="urn:TestWebservice/types">
    <complexType name="addnumbers">
    <sequence>
    <element name="int_1" type="int"/>
    <element name="int_2"
    type="int"/></sequence></complexType>
    <complexType name="addnumbersResponse">
    <sequence>
    <element name="result"
    type="int"/></sequence></complexType>
    <element name="addnumbers" type="tns:addnumbers"/>
    <element name="addnumbersResponse"
    type="tns:addnumbersResponse"/></schema></types>
    <message name="TestWebserviceSEI_addnumbers">
    <part name="parameters"
    element="ns2:addnumbers"/></message>
    <message name="TestWebserviceSEI_addnumbersResponse">
    <part name="result"
    element="ns2:addnumbersResponse"/></message>
    <portType name="TestWebserviceSEI">
    <operation name="addnumbers">
    <input message="tns:TestWebserviceSEI_addnumbers"/>
    <output
    message="tns:TestWebserviceSEI_addnumbersResponse"/></operation></portType>
    <binding name="TestWebserviceSEIBinding"
    type="tns:TestWebserviceSEI">
    <soap:binding transport="
    http://schemas.xmlsoap.org/soap/http"
    style="document"/>
    <operation name="addnumbers">
    <soap:operation soapAction=""/>
    <input>
    <soap:body use="literal"/></input>
    <output>
    <soap:body
    use="literal"/></output></operation></binding>
    <service name="TestWebservice">
    <port name="TestWebserviceSEIPort"
    binding="tns:TestWebserviceSEIBinding">
    <soap:address location="
    http://................../FlexWebserviceTest2/TestWebservice"
    xmlns:wsdl="
    http://schemas.xmlsoap.org/wsdl/"
    xmlns:soap12="
    http://schemas.xmlsoap.org/wsdl/soap12/"/></port></service></definitions>
    --------------------

    Here it is:
    <mx:WebService
    id="WS"
    wsdl="
    http://................................TestWebservice?wsdl"
    useProxy="false"
    fault="Alert.show(event.fault.faultString), 'Error'"
    showBusyCursor="true" >
    <mx:operation name="addnumbers" >
    <mx:request>
    <int_1>
    2
    </int_1>
    <int_2>
    5
    </int_2>
    </mx:request>
    </mx:operation>
    </mx:WebService>
    <mx:Panel>
    <mx:VBox >
    <mx:HBox fontSize="12">
    <mx:Button label="Go!" click="WS.addnumbers.send()"/>
    </mx:HBox>
    <mx:HDividedBox width="800">
    <mx:TextArea id="myTextArea"
    text="{WS.addnumbers.lastResult.toXMLString()}" width="390"
    height="400" fontSize="12"/>
    </mx:HDividedBox>
    </mx:VBox>
    </mx:Panel>
    ----------------

  • SBO2004: Event Handling problems

    Hello, all
    I have noticed a very peculiar thing about the way SBO handles events.
    I wrote a handler for the et_VALIDATE event on an EditText item (Sales Quotation->Customer) which does nothing but waits for two minutes. Then I performed the following experiment:
    Opened a sales quotation from in the Add mode, chose a Customer and added an item. Them I put the cursor into the Cusotmer field and pressed "Add". As a result, my event handler fired, so SBO was "frozen" for two minutes. But when the handler had completed nothing happened. The quotation wasn't added, although I didn't set BubbleEvent to false in the eventhandler.
    However, when I reduced the wait time to 30 seconds in the event handler everything started to work as it should: after completion of the eventhandler the quotation got added.
    Looks like if the handler of the preceding event (VALIDATE) executes for too long the following event (ITEM_PRESSED) may not fire at all...
    I this a correct behavior?
    Thanks in advance,
    Anton
    PS: I was testing in SBO2004

    Please update your system. Version 2004 is no longer supported.
    Hello, Vitor
    I know this, but I can't update soon. So I hope somebody can either confirm this problem or suggest a solution/workaround. But OK, I will check this in SBO2007.
    Anton

Maybe you are looking for

  • Music not playing in iTunes after iOS5/Itunes 10.5 updates.

    Hi, I recently updated both my iTunes to 10.5 and iPod touch 4g to iOS 5.  I updated on my laptop (which i am on now, and have the issue with).  The laptop is running 10.6.8, and has no music on the hard drive.  I plug my iPod into the laptop to use

  • Unknown error code -69

    while attempting to copy about 22.5gb of m4a files to my ipod i get the "could not write to... unknown error (-69)" message. it happens at about half way through the copying process and i am unable to put even a single song on the ipod after this. i

  • How to create Proxy Server in Java

    Hello I need to create Proxy server on port number 80. Does enybody knows how to do that.??? ThX

  • QoS on the UCS Chassis

    I bought a UCS chassis with two blades that are 'qualified' for Cisco Voice products (cm, ccx, etc)....     i decided to not buy the $20,000 worth of VMWARE enterprise pro licenses and the v1000 switch... since the ROI is simply not there (I'd rather

  • I downloaded 3 songs, only 1 has synced why?

    i have downloaded heaps of songs and most are ok, however recently I downloaded 3 Ce Lo Green songs, but only 2 have synced to my Iphone.  what is this?