Commit 44b77763 by Tuomas Riihimäki

Quickfix to use rowCount instead of empty for ListDataModel

1 parent 89c54ec5
Showing with 8 additions and 10 deletions
<!DOCTYPE html
PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:ui="http://java.sun.com/jsf/facelets" xmlns:h="http://java.sun.com/jsf/html" xmlns:c="http://java.sun.com/jsp/jstl/core"
xmlns:users="http://java.sun.com/jsf/composite/cditools/user" xmlns:f="http://java.sun.com/jsf/core" xmlns:p="http://primefaces.org/ui">
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:ui="http://java.sun.com/jsf/facelets" xmlns:h="http://java.sun.com/jsf/html" xmlns:c="http://java.sun.com/jsp/jstl/core" xmlns:users="http://java.sun.com/jsf/composite/cditools/user"
xmlns:f="http://java.sun.com/jsf/core" xmlns:p="http://primefaces.org/ui">
<h:body>
<ui:composition template="#{sessionHandler.template}">
<ui:param name="thispage" value="page.place.mygroups" />
......@@ -15,8 +15,8 @@
</ui:define>
<ui:define name="content">
<h:outputText rendered="#{empty placeGroupView.groupMemberships}" value="#{i18n['placegroupview.noMemberships']}" />
<h:form rendered="#{!empty placeGroupView.groupMemberships}" id="placelistform" styleClass="moya_datatable2">
<h:outputText rendered="#{placeGroupView.groupMemberships.rowCount == 0}" value="#{i18n['placegroupview.noMemberships']}" />
<h:form rendered="#{placeGroupView.groupMemberships.rowCount > 0}" id="placelistform" styleClass="moya_datatable2">
<p:dataTable value="#{placeGroupView.groupMemberships}" var="member" id="placestable">
......@@ -74,20 +74,18 @@
</h:form>
<!-- TODO: button -->
<p:outputPanel rendered="#{!placeGroupView.useEticket and !empty placeGroupView.groupMemberships}" >
<p:outputPanel rendered="#{!placeGroupView.useEticket and placeGroupView.groupMemberships.rowCount > 0}">
<p>
<input type="button" onclick="location.replace('#{request.contextPath}/PlaceGroupPdf');" value="#{i18n['placegroup.printPdf']}" />
</p>
</p:outputPanel>
<p:outputPanel rendered="#{!placeGroupView.useEticket and empty placeGroupView.groupMemberships}" >
<p>
#{i18n['placegroup.noPlacegroups']}
</p>
<p:outputPanel rendered="#{!placeGroupView.useEticket and placeGroupView.groupMemberships.rowCount == 0}">
<p>#{i18n['placegroup.noPlacegroups']}</p>
</p:outputPanel>
<p:outputPanel rendered="#{placeGroupView.useEticket}" >
<p:outputPanel rendered="#{placeGroupView.useEticket}">
<p>
<p:button outcome="/place/myEtickets" value="#{i18n['placegroup.showEticket']}" />
</p>
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!