How to make the AjaxSubmit button hold until the action binding its executed?
How to make the AjaxSubmit button hold until the action binding its executed?
- Subject: How to make the AjaxSubmit button hold until the action binding its executed?
- From: Gustavo Pizano <email@hidden>
- Date: Mon, 7 Sep 2009 11:16:37 +0200
Hello.
I have an AjaxSelectionList and a AjaxSubmitButton, I want to execute
the action called $"performTransSearch", all this is inside a
WOForm, but also I need to execute the action in the .java file will
fetch the data corresponding to the selection on the list.
But now it comes that Im using AjaxProxy and JSON to generate a grid,
with the values that returns when I do in the JS:
var user = json.translation.getTranslationsOfSelectedUser();
//implementation of the grid
...
...
but it's showing nothing, I did a debug, and I see that user is null..
I placed then a NSLog inside the getTranslationOfSelectedUser() methoh
to see what selectedUSer (which is the binding of selection for the
AJaxSelectionList) has, and eventually its null.
So the JS method its being called before the action of the
ajaxsubmitButton is performed....
How to avoid this situation?
Thanks in advance
G.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden