I'm using google app engine with JSF. i want to call a function when user press that button:
<p:commandButton value="Ajax Submit" action="#{todo.test}" />
and I put todo under src->package test123.
package test123;
import javax.faces.bean.ManagedBean;
import javax.faces.bean.SessionScoped;
import javax.faces.event.ActionEvent;
@ManagedBean(name="todo")
@SessionScoped
public class Todo {
public void test(ActionEvent event){
System.out.println("lol");
}
}
but when i press button, error occurs: sth like this:
javax.el.MethodNotFoundException: /Template/default.xhtml @39,38 action="#{todo.test}": Method not found: test.Todo@7929b073.test()
am i wrong? or do i need to do some configurations ?
Thanks