Corrected EL expressions in the "more" and "previous" links.

This commit is contained in:
Jeremy Grelle
2007-08-21 11:58:30 +00:00
parent 84b5337789
commit f1346d0ba7

View File

@@ -53,10 +53,10 @@
</h:column>
</h:dataTable>
<div class="prev">
<h:commandLink id="prevPageLink" value="Previous results" actionListener="#{searchCriteria.prevPageListener}" action="findHotels" rendered="#{hotelSearch.page > 0}"/>
<h:commandLink id="prevPageLink" value="Previous results" actionListener="#{searchCriteria.prevPageListener}" action="findHotels" rendered="#{searchCriteria.page > 0}"/>
</div>
<div class="next">
<h:commandLink id="nextPageLink" value="More results" actionListener="#{searchCriteria.nextPageListener}" action="findHotels" rendered="#{hotels != null and hotels.rowCount == hotelSearch.pageSize}"/>
<h:commandLink id="nextPageLink" value="More results" actionListener="#{searchCriteria.nextPageListener}" action="findHotels" rendered="#{hotels != null and hotels.rowCount == searchCriteria.pageSize}"/>
</div>
</div>