Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
Linnea Samila
/
Moya
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 44b77763
authored
Mar 02, 2015
by
Tuomas Riihimäki
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Quickfix to use rowCount instead of empty for ListDataModel
1 parent
89c54ec5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
16 deletions
code/moya-web/WebContent/place/myGroups.xhtml
code/moya-web/WebContent/place/myGroups.xhtml
View file @
44b7776
<!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"
>
...
...
@@ -60,11 +60,11 @@
<h:commandButton
rendered=
"#{placeGroupView.currentReleaseAllowed}"
action=
"#{placeGroupView.releasePlace()}"
value=
"#{i18n['placegroupview.releasePlace']}"
/>
<p:inputText
id=
"inviteEmail"
immediate=
"true"
rendered=
"#{placeGroupView.canSendInviteCurrent}"
value=
"#{placeGroupView.inviteMail}"
/>
<p:commandButton
rendered=
"#{placeGroupView.canSendInviteCurrent}"
value=
"#{i18n['place.send']}"
actionListener=
"#{placeGroupView.sendInvite}"
update=
":messages placestable"
/>
<p:watermark
for=
"inviteEmail"
rendered=
"#{placeGroupView.canSendInviteCurrent}"
value=
"#{i18n['user.email']}"
id=
"inviteEmailWatermark"
/>
<p:commandButton
rendered=
"#{placeGroupView.canSendInviteCurrent}"
value=
"#{i18n['place.send']}"
actionListener=
"#{placeGroupView.sendInvite}"
update=
":messages placestable"
/>
<p:watermark
for=
"inviteEmail"
rendered=
"#{placeGroupView.canSendInviteCurrent}"
value=
"#{i18n['user.email']}"
id=
"inviteEmailWatermark"
/>
<h:outputText
rendered=
"#{placeGroupView.showCancelInviteCurrent}"
value=
"#{member.inviteEmail}"
/>
<p:commandButton
rendered=
"#{placeGroupView.showCancelInviteCurrent}"
value=
"#{i18n['place.cancelSend']}"
actionListener=
"#{placeGroupView.cancelInvite}"
update=
":messages placestable"
/>
<p:commandButton
rendered=
"#{placeGroupView.showCancelInviteCurrent}"
value=
"#{i18n['place.cancelSend']}"
actionListener=
"#{placeGroupView.cancelInvite}"
update=
":messages placestable"
/>
</p:column>
...
...
@@ -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>
...
...
@@ -98,9 +96,9 @@
<p>
#{i18n['placetoken.topText']}
</p>
<h:form
id=
"placeTokenForm"
>
<h:outputLabel
value=
"#{i18n['placetoken.token']}:"
/>
<h:inputText
value=
"#{tokenView.token}"
/>
<h:commandButton
id=
"commitbtn"
action=
"#{tokenView.saveToken()}"
value=
"#{i18n['placetoken.commit']}"
/>
<h:outputLabel
value=
"#{i18n['placetoken.token']}:"
/>
<h:inputText
value=
"#{tokenView.token}"
/>
<h:commandButton
id=
"commitbtn"
action=
"#{tokenView.saveToken()}"
value=
"#{i18n['placetoken.commit']}"
/>
</h:form>
</p:outputPanel>
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment