could you please help me. I made this request scoped managed bean, but when I click on sayHello, in the console of the log it displays only hello even if I put a value in the field "chaine"
public class BackTheme {
private String chaine;
public BackTheme() {
}
public void sayHello(){
System.out.println("hello "+chaine);
}
public String getChaine() {
return chaine;
}
public void setChaine(String chaine) {
this.chaine = chaine;
}
}
HTML Code goes as below:
<div class="gt-form gt-content-box">
<h:inputText value="#{backTheme.chaine}" />
<h:form >
<a4j:htmlCommandLink actionListener="#{backTheme.sayHello}" value="Download"/>
</h:form>