で提供されるFullAjaxExceptionHandler
PrimeFacesでOmniFaces がどのように動作するかについて混乱しています。通常の では、エラー ページは正しく表示されますが、では何も起こらず、例外はコンソールにのみ記録されます。<p:commandButton>
actionListener
<h:commandButton>
<p:commandButton>
私の環境: PrimeFaces 4.0、GlassFish 3.1.2.2、OmniFaces 1.6.3。
意見:
<h:form>
<p:commandButton actionListener="#{errorTester.throwRuntimeException}"
value="PrimeFaces" />
<h:commandButton value="JSF"
action="#{errorTester.throwRuntimeException}">
<f:ajax execute="@form" render="@form" />
</h:commandButton>
</h:form>
豆の方法:
public void throwRuntimeException() {
throw new RuntimeException("peek-a-boo");
}
<p:commandButton>
によって例外が処理されるように を構成するにはどうすればよいFullAjaxExceptionHandler
ですか?