Re: 4.1.1 Dialog disappears without request

2007-07-04 Thread Paul Stanton
Turns out this is fixed in 4.1.2. I had to do some funky stuff to get 
4.1.2 working and it's not 100% yet, but I can't reproduce this 
particular issue  in 4.1.2. So thanks for the suggestion, it did help me 
figure out another problem ;)


Igor Drobiazko wrote:

Hi Paul,

just guessing: the might be some bug in @EventListener
You could try to replace your Buttons by Submit and call your listener
methods via action parameter:



Why do you prefer the combination of buttons + @EventListener?
Your listener methods is triggered by clicking on a button, so you don't
need the event listener?

On 7/4/07, Paul Stanton <[EMAIL PROTECTED]> wrote:


Hi all.

I can't test this under 4.1.2 because of my other issues (post - 4.1.1
upgrade to 4.1.2 async listener no longer works).

I'm having another issue with my dialogs. This one is totally
perplexing. What happens is this:
1. I click my add button, the dialog appears.
2. I click my cancel button, the dialog disappears.
3. I click my add button, the dialog appears for a second or two, then
disappears of it's own accord.

My debugging output:
showDialog
cancelDialog
showDialog
cancelDialog

.. so the 2nd 'cancelDialog' shouldn't be called and is not triggered by
user input, maybe dojo is calling it? why?

My Java:
@EventListener(targets = {"myShowButton"}, events = "onclick", async
= true)
public void showDialog()
{
System.out.println("showDialog");
..do work ..
setDialogHidden(false);


getRequestCycle().getResponseBuilder().updateComponent("addDialog");

}

@EventListener(targets = "myCancelButton", events = "onclick", async
= true)
public void cancelDialog()
{
System.out.println("cancelDialog");
..do work ..
setDialogHidden(true);


getRequestCycle().getResponseBuilder().updateComponent("addDialog");

}

My Html:













-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]








-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: 4.1.1 Dialog disappears without request

2007-07-04 Thread Igor Drobiazko

Hi Paul,

just guessing: the might be some bug in @EventListener
You could try to replace your Buttons by Submit and call your listener
methods via action parameter:



Why do you prefer the combination of buttons + @EventListener?
Your listener methods is triggered by clicking on a button, so you don't
need the event listener?

On 7/4/07, Paul Stanton <[EMAIL PROTECTED]> wrote:


Hi all.

I can't test this under 4.1.2 because of my other issues (post - 4.1.1
upgrade to 4.1.2 async listener no longer works).

I'm having another issue with my dialogs. This one is totally
perplexing. What happens is this:
1. I click my add button, the dialog appears.
2. I click my cancel button, the dialog disappears.
3. I click my add button, the dialog appears for a second or two, then
disappears of it's own accord.

My debugging output:
showDialog
cancelDialog
showDialog
cancelDialog

.. so the 2nd 'cancelDialog' shouldn't be called and is not triggered by
user input, maybe dojo is calling it? why?

My Java:
@EventListener(targets = {"myShowButton"}, events = "onclick", async
= true)
public void showDialog()
{
System.out.println("showDialog");
..do work ..
setDialogHidden(false);

getRequestCycle().getResponseBuilder().updateComponent("addDialog");
}

@EventListener(targets = "myCancelButton", events = "onclick", async
= true)
public void cancelDialog()
{
System.out.println("cancelDialog");
..do work ..
setDialogHidden(true);

getRequestCycle().getResponseBuilder().updateComponent("addDialog");
}

My Html:












-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




4.1.1 Dialog disappears without request

2007-07-04 Thread Paul Stanton

Hi all.

I can't test this under 4.1.2 because of my other issues (post - 4.1.1 
upgrade to 4.1.2 async listener no longer works).


I'm having another issue with my dialogs. This one is totally 
perplexing. What happens is this:

1. I click my add button, the dialog appears.
2. I click my cancel button, the dialog disappears.
3. I click my add button, the dialog appears for a second or two, then 
disappears of it's own accord.


My debugging output:
showDialog
cancelDialog
showDialog
cancelDialog

.. so the 2nd 'cancelDialog' shouldn't be called and is not triggered by 
user input, maybe dojo is calling it? why?


My Java:
   @EventListener(targets = {"myShowButton"}, events = "onclick", async 
= true)

   public void showDialog()
   {
   System.out.println("showDialog");
..do work ..
   setDialogHidden(false);
   getRequestCycle().getResponseBuilder().updateComponent("addDialog");
   }

   @EventListener(targets = "myCancelButton", events = "onclick", async 
= true)

   public void cancelDialog()
   {
   System.out.println("cancelDialog");
..do work ..
   setDialogHidden(true);
   getRequestCycle().getResponseBuilder().updateComponent("addDialog");
   }

My Html:

   



   
   
   




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]