/** * Create hello. * * @return */ public String createHello() { if (newHello.getEmail() != null && newHello.getEmail().isEmpty()) { newHello.setEmail(null); } helloWorldService.create(newHello); return "welcome?faces-redirect=true"; }
/** Init method. */ @PostConstruct public void init() { newHello = new HelloWorld(); ajaxHello = new HelloWorld(); logger.info("Initialize hello world list for display"); hellos = helloWorldService.retrieveAll(); }