Skip to Content
0
Sep 22, 2016 at 07:23 AM

How to run Controller Method every time after rendering XML View ?

154 Views

Hello,

I have 2 pages, Homepage and Splitpage. At Splitpage, I am fetching json from remote server and showing it's data using XML view. Problem is that controller method onInit() executes only once.

So if I go back to Home from Splitpage and navigates inside Splitpage again, it still shows old data. It does not fetches remote JSON data (I wrote that code in onInit() method). I also tested onBeforeRendering() method but it also behaves in the same way.

How to work around this issue ?

Thanks