Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
Riina Antikainen
/
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 34fb3e78
authored
May 16, 2014
by
Tuomas Riihimäki
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix showing of entries on voting/myEntries
1 parent
af3b5907
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
43 additions
and
2 deletions
code/MoyaWeb/WebContent/voting/myEntries.xhtml
code/MoyaWeb/src/fi/codecrew/moya/web/cdiview/voting/VoteListView.java
code/MoyaWeb/WebContent/voting/myEntries.xhtml
View file @
34fb3e7
...
@@ -7,14 +7,14 @@
...
@@ -7,14 +7,14 @@
<h:body>
<h:body>
<ui:composition
template=
"#{sessionHandler.template}"
>
<ui:composition
template=
"#{sessionHandler.template}"
>
<f:metadata>
<f:metadata>
<f:event
type=
"preRenderView"
listener=
"#{
user
View.initView}"
/>
<f:event
type=
"preRenderView"
listener=
"#{
voteList
View.initView}"
/>
</f:metadata>
</f:metadata>
<ui:define
name=
"content"
>
<ui:define
name=
"content"
>
<h1>
My entries
</h1>
<h1>
My entries
</h1>
<h:form>
<h:form>
<h:dataTable
styleClass=
"bordertable"
rowClasses=
"roweven,rowodd"
id=
"compolisttable"
value=
"#{
userView.user.compoE
ntries}"
var=
"entry"
>
<h:dataTable
styleClass=
"bordertable"
rowClasses=
"roweven,rowodd"
id=
"compolisttable"
value=
"#{
voteListView.e
ntries}"
var=
"entry"
>
<h:column>
<h:column>
<f:facet
name=
"header"
>
<f:facet
name=
"header"
>
<h:outputText
value=
"Title"
/>
<h:outputText
value=
"Title"
/>
...
...
code/MoyaWeb/src/fi/codecrew/moya/web/cdiview/voting/VoteListView.java
0 → 100644
View file @
34fb3e7
package
fi
.
codecrew
.
moya
.
web
.
cdiview
.
voting
;
import
java.util.List
;
import
javax.ejb.EJB
;
import
javax.enterprise.context.RequestScoped
;
import
javax.inject.Named
;
import
fi.codecrew.moya.beans.VotingBeanLocal
;
import
fi.codecrew.moya.enums.apps.CompoPermission
;
import
fi.codecrew.moya.model.CompoEntry
;
import
fi.codecrew.moya.web.cdiview.GenericCDIView
;
@Named
@RequestScoped
public
class
VoteListView
extends
GenericCDIView
{
private
static
final
long
serialVersionUID
=
4166316634472472472L
;
@EJB
private
VotingBeanLocal
votebean
;
private
List
<
CompoEntry
>
entries
;
public
void
initView
()
{
if
(
super
.
requirePermissions
(
CompoPermission
.
SUBMIT_ENTRY
))
setEntries
(
votebean
.
getEntriesForCurrentUser
());
}
public
List
<
CompoEntry
>
getEntries
()
{
return
entries
;
}
public
void
setEntries
(
List
<
CompoEntry
>
entries
)
{
this
.
entries
=
entries
;
}
}
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