1 2 3 4 5 6 7 8 9 10 11 12 13 14
|
HtmlOutputLink hol=new HtmlOutputLink();
ValueBinding vb = FacesContext.getCurrentInstance().getApplication().createValueBinding( "javascript: window.open('Flux/consulterCommentaire.jsp','CommentaireEvenement','width=700,height=200,menubar=no,status=no,location=no');");
hol.setValueBinding("onclick",vb);
HtmlOutputText hot4=new HtmlOutputText();
hot4.setValue("Commentaires");
hol.getChildren().add(hot4);
HtmlAjaxSupport hAS =new HtmlAjaxSupport();
hAS.setId("ajaxSupport_"+evt.getIdFlux());
hAS.setEvent("onclick");
javax.faces.el.MethodBinding mb = FacesContext.getCurrentInstance().getApplication().createMethodBinding( "#{commentaireBean.consulterCommentaire}", new Class[] { javax.faces.event.ActionEvent.class } );
hAS.setActionListener(mb);
hol.getChildren().add(hAS); |
Partager