Bonjour,
j'essaie depuis quelque temps de définir l'action d'une CommandLink en utilisant binding
<h:commandLink value="" binding="#{bean.command}"/>
et dans le code java
1 2
| CommandLinkTag tag= new CommandLinkTag();
tag.setAction("#{xxxx}") |
mon bean que j'utilise pour faire le binding est défini dans faces-config avec scope session.
quand je lance l'appli j'ai cette exception
1 2 3 4 5 6
| javax.faces.el.EvaluationException: java.lang.IllegalArgumentException
at com.sun.faces.el.ValueBindingImpl.setValue(ValueBindingImpl.java:229)
at com.sun.faces.application.ApplicationImpl.createComponent(ApplicationImpl.java:394)
at javax.faces.webapp.UIComponentTag.createComponent(UIComponentTag.java:1013)
at javax.faces.webapp.UIComponentTag.createChild
...... |
merci par avance
Partager