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 protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/lists%40thetimmy.com

This email sent to [email protected]

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      ([email protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to