public void carregarItemMenuListener(ActionEvent event) { String migalha = null; String idCommandLink = null; if (event.getSource() instanceof HtmlCommandLink) { HtmlCommandLink commandLink = (HtmlCommandLink) event.getSource(); idCommandLink = (String) commandLink.getId(); Acesso acessoTemp = mapAcessos.get(idCommandLink); if (acessoTemp != null) { migalha = acessoTemp.obterMigalha(); } } FacesUtil.adicionarAtributoSessao(MIGALHA, migalha); }
public String redirectView() { List<UIComponent> children = view.getChildren(); Map<String, String> parameters = getParameters(children); if (parameters.containsKey("id")) { item = search.findID(parameters.get("id")); } edit.setItem(null); return null; }
public String redirect() { List<UIComponent> children = link.getChildren(); Map<String, String> parameters = getParameters(children); if (parameters.containsKey("id")) { item = search.findID(parameters.get("id")); } // edit Session setzen edit.setItem(getFileItem()); return null; }