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:when test="#{breadcrumb.stackSize(conversationStack) == nb}">
                                                              <h:outputText value="#{entry.description}"/>
                                                              <h:commandLink value="#{entry.description}" action="#{entry.select}" >

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