问题
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