Question

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 
  }
}
Was it helpful?

Solution

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

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top