@URLAction不被调用 [英] @URLAction is not called

查看:82
本文介绍了@URLAction不被调用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当页面加载/刷新,页面从xhtml文件正确加载时,加载方法遇到问题,但是从不调用加载方法.有任何想法吗?

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

推荐答案

原来在其他地方使用了相同的映射ID,并且在服务器启动时它无声地崩溃了

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

这篇关于@URLAction不被调用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆