title: p:remoteCommand not executing / not called
body: <p>I'm facing the following problem:</p>
  
  <p>The Primefaces remoteCommand is not executing, does it depend on the lifecycle of my portlet?</p>
  
  <pre><code> &lt;h:form id="controllayer"&gt;
   .
   .
   .
   &lt;p:remoteCommand name="updatePageId" actionListener="#{formView.updatePageId}" /&gt;
   &lt;/h:form&gt;
   &lt;script&gt;   
      var pageID;
  
      Liferay.on('eventFire', function(event)
       {
        console.log("Recieved");
        console.log(event.name);
        pageID = event.name;
        update();
       });
  
      function update() {
  
        console.log("Recieved PageID: " + pageID);
        updatePageId({newPageId: pageID});
      }
  
   &lt;/script&gt;
  </code></pre>
  
  <p>I also tried it without a parameter but even this isn't working.</p>
  
  <pre><code>@SessionScoped
  @ManagedBean(name="formView")
  public class MainViewBean implements PagesUploadCallback, PageUploadCallback, PageActionCallback, Serializable
  {
   .
   .
   .
   public void updatePageId()
   {
    LOG.info("Update Page ID");
    String pageIdString = FacesContext.getCurrentInstance().getExternalContext().getRequestParameterMap().get("newPageId");
    long pageId = Long.valueOf(pageIdString);
    LOG.debug("Setting Page: " + pageId);
    pageService.setActivePage(pageId);
   }
  .
  .
  .
  }
  </code></pre>
  
  <p>My JavaCode is never called.</p>