Using LGPL SmartGWT 3.1 and its RestDataSource, I'm trying to implement a seamless relogin mechanism in my application.
I'm setting loginRequireCallback on RPCManager, which is called automatically on "login required" event to open a login window and redirect it to a login page.
What I would like to be able to do is set a loginSuccessCallback which would be called automatically when "login success marker" is detected to close the login window without the user having to close it manually.
What is the best way to implement this? Unfortunately, RPCManager is a static class so I can't just extend it. I'm guessing that I will need to modify RPCManager and build SmartGWT client from the source code... Or is there a simpler way to achieve my goal?
Thanks for the great platform!
I'm setting loginRequireCallback on RPCManager, which is called automatically on "login required" event to open a login window and redirect it to a login page.
What I would like to be able to do is set a loginSuccessCallback which would be called automatically when "login success marker" is detected to close the login window without the user having to close it manually.
What is the best way to implement this? Unfortunately, RPCManager is a static class so I can't just extend it. I'm guessing that I will need to modify RPCManager and build SmartGWT client from the source code... Or is there a simpler way to achieve my goal?
Thanks for the great platform!
Comment