title: repeat control, have a dynamic column
body: <p>I have made a utility custom control to have a quick, generic view. the custom control has as properties a property names collection  which is of type object and received an arraylist of java objects (e.g. a Customer object).</p>
  
  <p>Then  on the cc a repeat control is using this:</p>
  
  <pre><code>&lt;xp:repeat id="rptObjects" var="obj" indexVar="idx" value="#{javascript:compositeData.collection}" &gt;
  </code></pre>
  
  <p>I would like to make the columns more dynamic. So I defined a new property called linkName, also of type object.</p>
  
  <p>The in my repeat control I have setup a div with a xp:link control:</p>
  
  <pre><code>&lt;xp:link escape="true" text="#{javascript:compositeData.linkName}"&gt;
  </code></pre>
  
  <p>However I am struggling on the page that contains this cc to compute the value for the linkName property.</p>
  
  <p>If for example I would like to use the name field on a Customer java object how should I compute the valeu for the linkName property?</p>