title: How to pass a parameter value to a4j:jsFunction
body: <p>On my page I have a button that opens a list of items in a popup. When I select 1 item in the list, I want to pass the id of the item to the backingbean of my first page. Is it possible? It tried to do it with <code>a4j:jsFunction</code> and <code>a4j:param</code> but it does'nt work. </p>
  
  <p>This is my code:</p>
  
  <p><strong>page 1:</strong> </p>
  
  <pre><code>&lt;a4j:jsFunction name="renderGuarantor" render="guarantor" actionListener="#{prospectDetail.setNewGuarantor}"&gt;
    &lt;a4j:param name="param1" assignTo="#{prospectDetail.newGuarantorId}" /&gt;  
  &lt;/a4j:jsFunction&gt;
  </code></pre>
  
  <p><strong>popuppage:</strong></p>
  
  <pre><code>&lt;h:outputLink value="" onclick="window.opener.renderGuarantor(#{applicant.deposit_id});window.close();"&gt;
    &lt;h:graphicImage style="padding:0 1px; border:0"  value="${path.staticRootUrl}images/confirm.gif"  alt="${msg.applicantslist_select}" title="${msg.applicantslist_select}"/&gt;
  &lt;/h:outputLink&gt;
  </code></pre>
  
  <p>And this is the backing bean code for the first page    </p>
  
  <pre><code>private Integer newGuarantorId;
  public void setNewGuarantor()  {
      guarantor = newGuarantorId;
  }
  
  public Integer getNewGuarantorId() {
      return newGuarantorId;
  }
  
  public void setNewGuarantorId(Integer newGuarantorId) {
      this.newGuarantorId = newGuarantorId;
  }
  </code></pre>
  
  <p>When selecting in the popup the method in my backingbean is called, but <code>newGuarantorId</code> is null and <code>setNewGuarantorId</code> is never called.</p>
  
  <p>Is there a solution to my problem?</p>