Re: using the WOActionResults return in the action methods
Re: using the WOActionResults return in the action methods
- Subject: Re: using the WOActionResults return in the action methods
- From: Tim Worman <email@hidden>
- Date: Thu, 10 Sep 2009 23:48:18 -0700
Gustavo:
Your standard component actions should return context().page() since
they should result in the refresh of the page. I'm a bit new to the
ajax thing but I believe your ajax actions should return null - and by
design should not result in a full page refresh.
Tim
UCLA GSE&IS
On Sep 10, 2009, at 11:41 PM, Gustavo Pizano wrote:
Hello.
I have an AjaxSubmitButton binded to an action called
reassignTranslator() method , as I see all the action methods return
a WOActionResult type, but normally I see thye just return null, and
things work. I saw a post with sa similar quesiton, and read that I
should return a context().page(), but then in console I see that the
AjaxSubmitButton loggs that the return type its not correct.
Anyway the question here is, what should I return in order to show a
modal window, or pop up window or dialogo window in the browser to
advice the user that he must select a translator first?... or should
I do this kinda verifycation in the client side?
Anyway, either the case, knowing how to work with the WOActionResult
form the actions will be helpfullf for future needs.
Thanls
Gustavo
_______________________________________________
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
_______________________________________________
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