After following the JSF HTTP Session Login tutorial, i tried clicking on pages and it redirected me always to the login page (without css). I tried debugging using the code below:
Enumeration<String> attributeNames = wrappedRequest.getSession().getAttributeNames();
while(attributeNames.hasMoreElements()) {
System.out.println(attributeNames.nextElement());
}
and found that the class I expected to be return at
ConnectionManager manager = (ConnectionManager) wrappedRequest.getSession()
.getAttribute("connectionManager");
wasn't returned. Some other class was returned instead of ConnectionManager class as seen in the server log.
Info: employeeManager
Info: org.jboss.weld.context.beanstore.http.LockStore
Info: com.sun.faces.renderkit.ServerSideStateHelper.LogicalViewMap
Info: org.jboss.weld.context.conversation.ConversationIdGenerator
Info: org.jboss.weld.context.ConversationContext.conversations
Info: javax.faces.request.charset
EmployeeManager is another managed bean. Can I know why this is return instead?