• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: using the WOActionResults return in the action methods
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
References: 
 >using the WOActionResults return in the action methods (From: Gustavo Pizano <email@hidden>)

  • Prev by Date: using the WOActionResults return in the action methods
  • Next by Date: Using AjaxProxy to send data back to the server, causign errors
  • Previous by thread: using the WOActionResults return in the action methods
  • Next by thread: Using AjaxProxy to send data back to the server, causign errors
  • Index(es):
    • Date
    • Thread