3 Replies Latest reply on Jun 18, 2008 9:03 PM by jchouinard

    Detect last item of a list

    jchouinard

      Hi, I'm trying to fin the last element of the conversation stack, so it won't be linkable. I've tried doing this :


      <ui:repeat value="#{conversationStack}" var="entry" varStatus="nb">
                              <img src="img/arrow.png"> </img>
                                              <c:choose>
                                                      <c:when test="#{breadcrumb.stackSize(conversationStack) == nb}">
                                                              <h:outputText value="#{entry.description}"/>
                                                      </c:when>
                                                      <c:otherwise>
                                                              <h:commandLink value="#{entry.description}" action="#{entry.select}" >
                                                                      
                                                              </h:commandLink>
                                                      </c:otherwise>
                                              </c:choose>
                              </ui:repeat>



      But this won't work. Anyone ever did something like that?


      Thanks