Possible Duplicate:
h:commandLink / h:commandButton is not being invoked
I have a bean. That bean returns an object:
public class LogoBrick {
private String logoLink = "link";
public LogoBrick() {
System.out.println("LogoBrick");
}
public String getLogoLink() {
return logoLink;
}
public void setLogoLink(String logoLink) {
this.logoLink = logoLink;
}
public void save() {
System.out.println("SUCCESS: " + logoLink);
}
}
and I want to (in jfs file) invoke the method from this object:
<h:form id="logo-form">
Logo link: <h:inputText id="logoLink" value="#{brick.logoLink}"/>
<h:commandButton value="Save" action="#{brick.save()}"/>
</h:form>
The method save and the setter is not invoked but the getter is. Could anyone tell my why? What am I doing wrong?