title: Creating command links dynamically from a managed bean
body: <p>I have a need to create command links dynamically based on content coming from elsewhere.
  When a user clicks on a link it should call a method in a managed bean, and the method needs to know which link was clicked.</p>
  
  <p>I can create the command links using the following code:</p>
  
  <p>JSF:
      <code>&lt;h:outputText value="#{myBean.dynamicLinks}" escape="false" /&gt;</code></p>
  
  <p>Bean:
      <code>public String getDynamicLinks(){
          // Return an html string that contains a set of &lt;a&gt; elements, based on the dynamic content
      }</code></p>
  
  <p>This works fine, but what I can't work out is how my <code>&lt;a&gt;</code> elements can call back into the bean.</p>