1 Reply Latest reply on Nov 13, 2009 11:14 PM by Kai Hennig

    a4j:repeat for f:param in s:link

    Julia R Newbie

      Hi all!
      I have a something like this piece of code ..



      <s:link view="/pages/page.xhtml" propagation="none">
              <a4j:repeat value="#{bean.values}" var="value">
                      <f:param name="#{value.name}" value="#{value.value}"/>            
              </a4j:repeat>
              <f:param name="page" value="#{pageNum}" />#{pageNum}
      </s:link>



      a4j:repeat doesn't work at all. Neither ui:repeat.


      Can you give me some ideas why this is happening?
      The output link is /pages/page.seam?page=2

        • 1. Re: a4j:repeat for f:param in s:link
          Kai Hennig Newbie

          Hello Julia, use c:forEach instead of a4j:repeat, e.g.:



          <html xmlns:f="http://java.sun.com/jsf/core"
              xmlns:c="http://java.sun.com/jstl/core"
              xmlns:s="http://jboss.com/products/seam/taglib">
          <s:link view="/pages/page.xhtml" propagation="none">
              <c:forEach items="#{bean.values}" var="value">
                  <f:param name="#{value.name}" value="#{value.value}"/>            
              </c:forEach >
              <f:param name="page" value="#{pageNum}" />#{pageNum}
          </s:link>
          </html>



          Kai