This content has been marked as final.
Show 3 replies
-
1. Re: Detect last item of a list
damianharvey.damianharvey.gmail.com Jun 18, 2008 7:35 PM (in response to jchouinard)Try something roughly like:
<a4j:repeat value="#{conversationStack}" var="entry" rowKeyVar="rowIndex"> <img src="img/arrow.png"> </img> <h:outputText rendered="#{rowIndex ge conversationStack.size() -1}" value="#{entry.description}"/> <h:commandLink rendered="#{rowIndex lt conversationStack.size() -1}" value="#{entry.description}" action="#{entry.select}" > </a4j:repeat>
Cheers,
Damian.
-
2. Re: Detect last item of a list
jchouinard Jun 18, 2008 7:51 PM (in response to jchouinard)Woohoo! Works great, just changed rendered="#{rowIndex lt conversationStack.size() -1}" to rendered="#{rowIndex == conversationStack.size() -1}"
Thanks! -
3. Re: Detect last item of a list
jchouinard Jun 18, 2008 9:03 PM (in response to jchouinard)Never mind my last comment, snow works fine with your way (previously was not)
Thanks!