Spring
Spring

Reputation: 11835

@URLAction is not called

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

Upvotes: 0

Views: 224

Answers (1)

Spring
Spring

Reputation: 11835

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

Upvotes: 1

Related Questions