@URLAction is not called

瘦欲@ 提交于 2019-12-12 00:24:14

问题


I have a problem hitting to load method when the page loads/refreshes, page loads correctly from xhtml file, but load method is never get called. Any ideas?

@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 
  }
}

回答1:


Turns out that same mapping id used somewhere else, and it was crashing silently while server starts



来源:https://stackoverflow.com/questions/17276752/urlaction-is-not-called

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!