title: Primefaces remotecommand action called only once
body: <p>I have</p>
  
  <pre><code>&lt;p:remoteCommand name="updateSelectedTarget" update="partToUpdate" actionListener="#{bean.onSelectedTarget}"/&gt;
  </code></pre>
  
  <p>bean.java</p>
  
  <pre><code>public void onSelectedTarget() {
      System.out.println("here");
  }
  </code></pre>
  
  <p>With this configuration, the action is only fired once. Do I need to use actionListener or action? And is there something to do with the process parameter of remoteCommand?</p>
  
  <p>I just want to add that it was working before. I just changed the updated part below</p>
  
  <pre><code>&lt;h:panelGroup id="partToUpdate" layout="block"&gt;
      &lt;p:panelGrid rendered="#{bean.selectedTarget == null ? false : true}"&gt;
          ...
          &lt;h:selectOneMenu value="#{bean.stuffID}"&gt;
              ...
          &lt;/h:selectOneMenu&gt;
          ...
      &lt;/p:panelGrid&gt;
  &lt;/h:panelGroup&gt;
  </code></pre>
  
  <p>Before there was just an ID one the selectOneMenu</p>
  
  <pre><code>&lt;h:selectOneMenu value="#{bean.stuffID}"&gt;
  </code></pre>
  
  <p>and now I have the object</p>
  
  <pre><code>&lt;h:selectOneMenu value="#{bean.stuff}"&gt;
  </code></pre>