我有一个问题击中加载方法时,页面加载/刷新,页面正确地从XHTML文件,但加载方法加载永远不会被调用。 有任何想法吗?
@ManagedBean
@ViewScoped
@URLMapping(id = "deactivate", pattern = "/deactivateaccount", viewId = "/deactivateaccount.xhtml")
public class DeactivateAccount{
@URLAction
public void load(){
//This method does not hit when page loads
}
}