public String save() { boolean isStored = dao.storeNewKunde(kunde); if (isStored) { setKundenStatus(1); return "formKunde"; } return ""; }
public String isKundeValid() { // TODO Methodenname?? kunde = dao.findKunde(tempUsername, tempPassword); if (kunde.getKundenNummer() != -1) { return "showKunde"; // TODO Navigationrules } FacesMessage msg = new FacesMessage("Username und/oder Passort falsch!"); msg.setSeverity(FacesMessage.SEVERITY_INFO); FacesContext.getCurrentInstance().addMessage("msgout", msg); return "noKunde"; }