title: jsf set ui:param or use a value that changes dynamically in ui:repeat
body: <p>I want to update an ui:param value or use something similar in ui:repeat loops with a condition. The idea is something as follows (is just an aprox, not the final implementation but I guess is understandable):</p>
  
  <pre><code>&lt;ui:param name="marginLeftNode" value="#{myBean.initialMarginValue}" /&gt;
  
  &lt;ui:repeat value="#{myBean.viewWrapper.linkMap.entrySet().toArray()}" var="map"&gt;
      &lt;ui:repeat var="link" value="#{map.value}" varStatus="status"&gt;
  
          &lt;li style="margin-left: #{marginLeftNode}%" class="ico-#{link.getStyleCss()}-ayuda"&gt;
              &lt;a href="#{link.getUrlLink()}"&gt;#{link.getTitle()}&lt;/a&gt;
          &lt;/li&gt;
  
          &lt;!-- Code conditions that doesn't works in any way as I've readed in the links after code --&gt;
          &lt;c:if test="#{marginLeftNode gt 4}"&gt;
              &lt;ui:param name="marginLeftNode" value="#{myBean.viewWrapper.nodeList.get(status.index).depth}" /&gt;
          &lt;/c:if&gt;
          &lt;ui:fragment rendered="#{marginLeftNode gt 4}"&gt;
              &lt;ui:param name="marginLeftNode" value="#{myBean.viewWrapper.nodeList.get(status.index).depth}" /&gt;
          &lt;/ui:fragment&gt;
          &lt;!-- End code conditions: these are the two solutions c:if and ui:fragmen I tried --&gt;
  
      &lt;/ui:repeat&gt;
  &lt;/ui:repeat&gt;
  </code></pre>
  
  <p>I can't use c:if inside ui:repeat because doesn't works (<a href="https://stackoverflow.com/questions/7248439/specify-conditional-rendering-of-element-inside-uirepeat-the-cif-does-not">Specify conditional rendering of element inside &lt;ui:repeat&gt;? The &lt;c:if&gt; does not seem to work</a>) and I can't use ui:fragment with ui:param because it doesn't works too (<a href="https://stackoverflow.com/questions/8400066/conditional-variable-definition-in-jsf">Conditional variable definition in JSF</a>)</p>
  
  <p>So, any idea how to solve that?</p>