@Override public void redirectListView() { try { JSFUtil.redirect("level_list.jsf?faces-redirect=true"); } catch (Exception ex) { java.util.logging.Logger.getLogger(LevelMB.class.getName()) .log(java.util.logging.Level.SEVERE, null, ex); } }
@Override public void redirectEditView(String id) { try { String url = "level_edit.jsf?faces-redirect=true"; if (!Strings.isEmpty(id)) { url = url + "&id=" + id; } JSFUtil.redirect(url); } catch (Exception ex) { java.util.logging.Logger.getLogger(LevelMB.class.getName()) .log(java.util.logging.Level.SEVERE, null, ex); } }