tag:blogger.com,1999:blog-2330120457456880954.post1606702270774920256..comments2023-11-02T22:17:12.318+11:00Comments on DevGrok: Access Control in JSF using a PhaseListenerChris Wattshttp://www.blogger.com/profile/12923587712192007751noreply@blogger.comBlogger7125tag:blogger.com,1999:blog-2330120457456880954.post-39922011408738213552016-01-25T20:29:14.716+11:002016-01-25T20:29:14.716+11:00This comment has been removed by the author.Anonymoushttps://www.blogger.com/profile/06144146909398566375noreply@blogger.comtag:blogger.com,1999:blog-2330120457456880954.post-17640309930662398502011-12-01T04:52:26.062+11:002011-12-01T04:52:26.062+11:00I have tried to make a more generic version of you...I have tried to make a more generic version of your code/idea. <br />I have posted it here<br /><br />http://stackoverflow.com/questions/8330535/access-control-in-jsf-using-a-phaselistener-a-generic-version-what-do-think <br /><br />What do you think?FrederikHhttps://www.blogger.com/profile/14658704224665011639noreply@blogger.comtag:blogger.com,1999:blog-2330120457456880954.post-87512275599669796812010-11-19T12:44:09.727+11:002010-11-19T12:44:09.727+11:00Nice code Thank you very match, now i can secure m...Nice code Thank you very match, now i can secure my applicationkohanhttps://www.blogger.com/profile/04027327855013891700noreply@blogger.comtag:blogger.com,1999:blog-2330120457456880954.post-12394209529616302362010-10-26T22:54:05.528+11:002010-10-26T22:54:05.528+11:00(To simplify & avoid confusion, lets call my S...(To simplify & avoid confusion, lets call my SessionForm, SessionBean instead).<br /><br />In our case, the bean for the Login Form was our SessionBean. Depending on the scoping of your bean you have 2 choices:<br />1. Use your LoginBean in place of my SessionBean, backing your login form and keeping track of the user's session.<br />2. If your LoginBean is request scoped then inject (or access using EL) the SessionBean, updating it upon successful login (and when logging out).<br /><br />Those are just some examples.Chris Wattshttps://www.blogger.com/profile/12923587712192007751noreply@blogger.comtag:blogger.com,1999:blog-2330120457456880954.post-78294804075918548772010-10-25T08:20:18.952+11:002010-10-25T08:20:18.952+11:00Thank you for your response, but I have one more.....Thank you for your response, but I have one more...<br />I hava a Login Form, a Register Form and a Private Form, the private form is supossed to be only accessible for a logged user, also I have a bean for the Login Form, the question is this class have this bean something to do with the SessionForm you attached in the zip?Penghttps://www.blogger.com/profile/04282112290862668393noreply@blogger.comtag:blogger.com,1999:blog-2330120457456880954.post-36598898021485314352010-10-21T23:42:17.138+11:002010-10-21T23:42:17.138+11:00SessionForm is just a managed bean providing infor...SessionForm is just a managed bean providing information about the current user's session. It can be whatever it is required for your application.<br />I've attached the source of the empty class for you to get a better idea.Chris Wattshttps://www.blogger.com/profile/12923587712192007751noreply@blogger.comtag:blogger.com,1999:blog-2330120457456880954.post-6527817496731712242010-10-21T16:31:27.162+11:002010-10-21T16:31:27.162+11:00where is evgrok.jsf.SessionForm ?where is evgrok.jsf.SessionForm ?Penghttps://www.blogger.com/profile/04282112290862668393noreply@blogger.com