title: Making h:panelGroup clickable, and send back repeated variable
body: <p>I need to make a <code>panelGrid</code> (one of man that are populated from a list of objects) clickable, and then send the item associated with it to the backing bean.</p>
  
  <p>My HTML so for:</p>
  
  <pre><code>&lt;ui:repeat var="searchItem" value="#{bean.filteredSearchItems}" varStatus="searchResult"&gt;
      &lt;h:panelGrid&gt;
          &lt;!-- I get some info here from the searchResult object --&gt;
      &lt;/h:panelGrid&gt;
      &lt;f:ajax event="click" listener="{bean.clickFlight}" /&gt;
      &lt;f:param name="lfi" value="#{searchResult.index}" /&gt;
  &lt;/ui:repeat&gt;
  </code></pre>
  
  <p>I know that (in my backing bean) I need a function called <code>clickSearchItem()</code> that can handle the ajax call, so to test all of this, I did the following in my backing bean:</p>
  
  <pre><code>public void clickFlight()
  {
      HttpServletRequest req = (HttpServletRequest) FacesContext.getCurrentInstance().getExternalContext().getRequest();
  String lfi = req.getParameter("lfi");
  
  if (lfi == null)
      log.info("LFI WAS RETURNED AS NULL :(");
  
      log.info("HOPEFULLY AN INDEX OF SOME SORT!: " + lfi);
  }
  </code></pre>
  
  <p>Nothing is getting logged - the click doesn't register. Has anyone else had this problem? Does anyone know how to solve it?</p>