title: why jsf command doesn't work in js?
body: <p>I have some code, and I don't know why he nor work, when I want call <code>logoutAction()</code> managed bean function.</p>
  
  <pre><code>&lt;script type="text/javascript"&gt;
      const sessionTimeOut = #{timeoutBean.getTimeout()};
      function startTimer(timeoutCount = 0) {
        if (#{request.userPrincipal != null}) {
          if (timeoutCount &gt;= sessionTimeOut) {
              logoutAction();
          }
          setTimeout(startTimer, 1000, timeoutCount + 1);
        }
      }
    &lt;/script&gt;
  </code></pre>
  
  <p>and my form </p>
  
  <pre><code>&lt;h:form&gt;
      &lt;p:remoteCommand name="logoutAction" actionListener="#{logoutBean.logoutProcess}"/&gt;
    &lt;/h:form&gt;
  </code></pre>
  
  <p>Help me please.</p>