private LoginVO loginVO;
public String LoginAction() {
try {
User user = loginService.login(loginVO.getUsername(), loginVO.getPassword());
super.addSessionProperties(SessionProp.USERNAME,user.getUsername());
super.addSessionProperties(SessionProp.USER_LEVEL,user.getLevel());
super.addSessionProperties(SessionProp.USER_GROUP,user.getGroup());
super.addSessionProperties(SessionProp.USER_TYPE,user.getType());
super.addSessionProperties(SessionProp.USER_ID,user.getId());
super.addSessionProperties(SessionProp.LOCALE, user.getLocale());
FacesMessage msg = new FacesMessage(FacesMessage.SEVERITY_ERROR, ProcessHandler.getMessage(Process.USERNAME_OR_PASSWORD_ERROR,(String)super.getSessionProperties(SessionProp.LOCALE), null),null);
FacesContext.getCurrentInstance().addMessage(null,msg);
return SUCCESS;