Why does p:remoteCommand does not trigger when I try calling it in an error page but it works if I removed it as an error-page. Am I missing a configuration?
web.xml
<error-page>
<error-code>404</error-code>
<location>/errorPage.xhtml</location>
</error-page>
<servlet-mapping>
<servlet-name>Faces Servlet</servlet-name>
<url-pattern>*.xhtml</url-pattern>
</servlet-mapping>
errorPage.xhtml
<h:form>
<p:remoteCommand name="rCom1" actionListener="#{bean.method}" />
</h:form>