Bonjour,


J'ai un probléme avec l'ActionListener, mon code est le suivant :

Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
HtmlLink downloadLink=new HtmlLink();
 
downloadLink.getAttributes().put("filePath","fichier.pdf");
 
MethodBinding mb = app.createMethodBinding("#{downloadFiles.downloadWithActionListener}", null);
 
downloadLink.setActionListener(mb);
Dans le bean "downloadFiles" la méthode "downloadWithActionListener" ne s'invoque pas.
la déclaration de cette méthode est comme suit :

Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
public void downloadWithActionListener(ActionEvent event)
{}