Sorry, I thought you meant AjaxUpdateLink.
Best,
On Jul 18, 2011, at 12:06 PM, Mai Nguyen wrote: Hi Johny, I did not know that WOHyperlink has an onSuccess binding? but I can try. After the action is performed, I wish to close the window immediately.
Thanks,
mai On Jul 18, 2011, at 2:57 PM, Johnny Miller wrote: Have you tried using the onSuccess binding?
On Jul 18, 2011, at 11:50 AM, Mai Nguyen wrote: Dear List,
I have searched the archives for a seemingly simple issue: I have a JSModalWindow with a WOHyperlink, the link has an action to perform then it should close the window. I have tried various things like returning the previous page (saved from the calling page) in the action but it would create a new calling page, not closing the existing JSModalWindow.
I found this suggestion from the archives, but it does not work for me. The window still does not close, if I return a WO Component with this HTML. Besides, is this the only solution?
>
> Another way to do it: Have your link be a simple WOHyperlink or
> dynamic submit button, bound to an action method. But that action
> method returns a WOComponent (or WOResponse) which is simply HTML that
> says:
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
|