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

    Detect last item of a list

    Julien Chouinard Newbie

      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