Topic
  • 3 replies
  • Latest Post - ‏2014-09-02T18:39:21Z by kcibmer
DivyaN23
DivyaN23
72 Posts

Pinned topic returning portlet to initial state from external url

‏2014-08-26T09:04:06Z |

Hello,

 

I have a portlet in which the first page shows the amt, the second page allows to edit the amt and when clicked on the confirm button ,it  goes to redirect page which triggers client javascript to external URL. So if I try to navigate to the portlet again using friendly url or back button the portlet doesn't return to the first page and just stays on the redirect page. It goes to the first page only after logging out of portal and logging back in.

Just wondering how to make the portlet go back to initial page after the ridirect to the external URL. The event handler onPageRedirect (gave the main action in the actions) just rbings back to the first page but it doesn't allow to redirect to external URL.

Thanks for your time!

Updated on 2014-08-27T16:25:50Z at 2014-08-27T16:25:50Z by DivyaN23
  • DivyaN23
    DivyaN23
    72 Posts

    Re: returning portlet to initial state from external url

    ‏2014-08-26T11:04:46Z  

    ok. got around it with this article

    Updated on 2014-08-26T11:05:04Z at 2014-08-26T11:05:04Z by DivyaN23
  • DivyaN23
    DivyaN23
    72 Posts

    Re: returning portlet to initial state from external url

    ‏2014-08-27T16:29:44Z  
    • DivyaN23
    • ‏2014-08-26T11:04:46Z

    ok. got around it with this article

    The hidden input value submitted to the external URL changes if I go back and again change in the edit page in my local, when I use the Samrt refresh for the button but it doesn't in the development enviroment. The development enviroment has webseal. Not sure why value doesnt change in the development environment.

    Thanks for your time1

  • kcibmer
    kcibmer
    66 Posts

    Re: returning portlet to initial state from external url

    ‏2014-09-02T18:39:21Z  
    • DivyaN23
    • ‏2014-08-27T16:29:44Z

    The hidden input value submitted to the external URL changes if I go back and again change in the edit page in my local, when I use the Samrt refresh for the button but it doesn't in the development enviroment. The development enviroment has webseal. Not sure why value doesnt change in the development environment.

    Thanks for your time1

    Your model keeps track of the last page which was requested so that things like a page refresh will re-show that page.  To force a different page, use:

    webAppAccess.resetCurrentPage("page1");

    in a method and call it after you have rendered your confirmation page. The next time your model loads, it will show page1.