【发布时间】:2013-08-16 20:56:26
【问题描述】:
我在页面上有一个 p:commandButton。当会话超时并且我单击它时,没有任何反应。日志上不显示任何内容,并且未调用该操作。
我已阅读 this post 和 this post 关于该主题的内容。所以我用下面的代码创建了一个 ExceptionHandler:
Throwable exc = null;
for (final Iterator<ExceptionQueuedEvent> it = getUnhandledExceptionQueuedEvents().iterator(); it.hasNext();) {
exc = it.next().getContext().getException();
}
return exc;
为了获取异常并将用户重定向到错误页面。但是,迭代器总是空的,所以exc总是null...
【问题讨论】:
标签: jsf primefaces