예제 #1
0
 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);
 }