@URLAction不叫(@URLAction is not called)

2019-10-30 07:10发布

我有一个问题击中加载方法时,页面加载/刷新,页面正确地从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 
  }
}

Answer 1:

原来,使用相同的映射的id其他地方,虽然服务器启动时,它正默默地崩溃



文章来源: @URLAction is not called