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:
<form jwcid="[EMAIL PROTECTED]" listener="ognl:page.listeners.formSubmit">
   <input type="button" jwcid="[EMAIL PROTECTED]" label="Show Dialog"/>
</form>

<div jwcid="[EMAIL PROTECTED]" hidden="ognl:dialogHidden">
   <form jwcid="[EMAIL PROTECTED]" success="listener:mySaveListener">
       <input type="button" jwcid="[EMAIL PROTECTED]" label="Cancel"/>
   </form>
</div>



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

Reply via email to