how to eliminate code repeating in jsf page?
Hello!
I have code
<c:choose>
<c:when test="${headerBacking.selected == '/trinidad/faces/contracts.jspx'}">
<tr:commandNavigationItem
immediate="true"
text="Contracts"
action="guide.page"
selected="true"/>
</c:when>
<c:otherwise>
<tr:commandNavigationItem
immediate="true"
text="Contracts"
action="guide.page"
selected="false"/>
</c:otherwise>
</c:choose>
If and else part is little bit different, parameter SELECTED value is different.
how better to eliminate code repeating in jsf page in this situation?
Thanks! :)

