I am new to JSF and I would like to understand why page redirection and page redirection do not create the same security rendering.
I have a JSF button that calls the support method:
<h:form> <p:commandButton action="#{login.play}" ... /> </h:form>
Bean login
public String play() { ... //forward implementation return "play"; } public String play() { ... //redirect implementation return "play?faces-redirect=true"; }
My play.xhtml page play.xhtml protected. Only admin or user roles can access it, but with my first play method, the security restriction is not enabled, I can access it. Why is it different?
source share