我在页面加载/刷新时遇到加载方法的问题,从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
}
}
答案 0 :(得分:1)
结果是在其他地方使用了相同的映射ID,并且在服务器启动时它以静默方式崩溃