0

I have a simple question. Can I use action function to redirect to a new page using controller code and also at the same time use onComplete of the action function so that onComplete gets called before the page gets redirected using controller method.

Thanks,

Ray

3
  • I do not think so as the action is not complete until the page it redirected thus the action function is no longer valid. Best way to know is give it a try.
    – Eric
    Commented Oct 8, 2015 at 11:36
  • already tried was not able to, but would like to know a work around
    – SEuser
    Commented Oct 8, 2015 at 13:15
  • Well, you could add a parameter to the URL of the page you are calling and have a method in that pages controller do what you wanted the oncomplete in the previous actionfunction to do
    – Eric
    Commented Oct 8, 2015 at 13:18

0

You must log in to answer this question.

Browse other questions tagged .