Reputation:
I have following ZUL files in my web content folder
Login.zul - Composer Applied
Category.zul - No Composer Applied
Index.zul - Composer Applied
Help.zul - NO Composer Applied
AboutUs.zul - NO Composer Applied
whenever I try to access Category.zul or Help.zul I can see them in my browser, but according to my usecase If I try to access it, I should always be redirected to Login.zul How can I achieve this.
One Solution : I can add composer to all the ZUL and then in doAfterCompose() do Executions.sendRedirect("to my login page") , but I think this not correct way to do it.
Upvotes: 1
Views: 121
Reputation:
I have implemented DestopInit Interface, of ZK when ever new desktop is initialized i.e when I open link in new tab. I have checked Page URL if it is not Login I have redirected user back to Login Page.
Upvotes: 0
Reputation: 2200
Quite a few standard ways to handle this
Upvotes: 1