182183184185186187188
} } private void initPages(ServletContext sc) { // register Page Beans new SamplePages().registerPageBeans(this.getFacesImplementation()); }
185186187188189190191
} } private void initPages(ServletContext sc) { BeanManager bm = ApplicationAssociate.getInstance(sc).getBeanManager(); new SamplePages().registerPageBeans(bm); }
7677787980818283848586
return loginInfo; } public String doInit() { SampleUser user = getUser(); if (user!=null) loginInfo.setName(user.getUserId()); // Done return INPUT; }
9596979899100101102103104
setActionError(SampleErrors.InvalidPassword); return INPUT; } // Login SampleUser user = new SampleUser(userID, userName); getSession().setUser(user); // Done return SUCCESS; }
949596979899100101102103104105106
return loginInfo; } public String doInit() { SampleUser user = getSession().getUser(); if (user != null) loginInfo.setName(user.getUserId()); // check webservice availability! checkWebService(); // Done
117118119120121122123124125126127
setActionError(Errors.InvalidPassword); return INPUT; } // Login SampleUser user = new SampleUser(userID, userName); user.setLocale(new Locale(loginInfo.getLocale())); getSession().setUser(user); // Done return SUCCESS; }
setActionError(SampleErrors.InvalidPassword); return INPUT; } // Login SampleUser user = new SampleUser(userID, userName); user.setLocale(new Locale(loginInfo.getLocale())); getSession().setUser(user); // Done return SUCCESS; }
setActionError(Errors.InvalidPassword); return INPUT; } // Login SampleUser user = new SampleUser(userID, userName); getSession().setUser(user); // Done return SUCCESS; }