Is it possible to invoke an action binding in a JSF managed bean from a facelets web page? I have the page:

Code:
...
<body>
<f:view>
	<h:form id="form">
		<h:commandButton id="button" action="#{testBean.test}" value="test"/>
	</h:form>
</f:view>
</body>
...
And I want to invoke an action in the following bean:

Code:
ANNOTATION Controller("testBean")
public class TestBean {
	public TestBean() {
		System.out.println("TestBean()");
	}

	public void test() {
		System.out.println("in test!");
	}
}
The bean is instantiated by Spring, and the view is rendered correctly (it is recognized by the mapping configured for org.springframework.web.servlet.DispatcherServlet) . But clicking on the command button has no visible effect (and the test() method is not called).

Is this expected behavior or there is something wrong with our configuration?

PS: Mentally replace an at sign for the ANNOTATION on the code snippet. Sigh.