title: How to make a4j:commandLink execute action and show modalpanel?
body: <p>Jsf 1.2, Richfaces 3.3.3, </p>
  
  <p>I got the following code working to show a richfaces:modalpanel:</p>
  
  <pre class="lang-html prettyprint-override"><code>&lt;ui:repeat id="albums" var="listvalue" 
      value="#{MyBean.getImagelist()}"&gt;
      &lt;a4j:commandLink id="link" reRender="panel"&gt;
          &lt;h:graphicImage id="image" url="My_image.jpg"/&gt;
          &lt;rich:componentControl for="panel" attachTo="link" operation="show"
              event="onclick"/&gt;
      &lt;/a4j:commandLink&gt;
  &lt;/ui:repeat&gt;
  </code></pre>
  
  <p>It works and the modalpanel is shown, but what I couldn't manage to do is call a method that is on MyBean, how do I do that?</p>
  
  <p>UPDATE 1</p>
  
  <p>I forgot to mention that i need to pass a <code>&lt;f:param&gt;</code> on that action</p>
  
  <p>UPDATE 2</p>
  
  <p>As requested, here's the exact code i have:</p>
  
  <pre><code>&lt;ui:repeat id="al11" var="albumslistvalue1" 
  value="#{AlbumDetailBean.getAlbumImagesList()}"&gt;
    &lt;a4j:commandLink id="link" action="#{AlbumDetailBean.mudaIdatual()}" 
      reRender="panel"
      oncomplete="javascript:Richfaces.showModalPanel('panel');" &gt;
      &lt;a4j:actionparam name="idfotoatual" value="#{albumslistvalue1.id}" /&gt;
      &lt;h:graphicImage id="image" 
      url="#{albumslistvalue1.albumimagename}"/&gt;
     &lt;/a4j:commandLink&gt;
  &lt;/ui:repeat&gt;
  </code></pre>