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 0dff7937
authored
Oct 31, 2010
by
Tuomas Riihimäki
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Pollwrapperia ja viewiä
1 parent
deffb46b
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
7 deletions
code/LanBortalWeb/src/fi/insomnia/bortal/view/PollView.java
code/LanBortalWeb/src/fi/insomnia/bortal/view/helpers/PollWrapper.java
code/LanBortalWeb/src/fi/insomnia/bortal/view/PollView.java
View file @
0dff793
package
fi
.
insomnia
.
bortal
.
view
;
package
fi
.
insomnia
.
bortal
.
view
;
import
java.util.List
;
import
javax.ejb.EJB
;
import
javax.ejb.EJB
;
import
javax.faces.bean.ManagedBean
;
import
javax.faces.bean.ManagedBean
;
import
javax.faces.bean.SessionScoped
;
import
javax.faces.bean.SessionScoped
;
...
...
code/LanBortalWeb/src/fi/insomnia/bortal/view/helpers/PollWrapper.java
View file @
0dff793
...
@@ -58,17 +58,19 @@ public class PollWrapper {
...
@@ -58,17 +58,19 @@ public class PollWrapper {
}
}
public
List
<
PollAnswer
>
getAnswers
()
{
public
List
<
PollAnswer
>
getAnswers
()
{
// TODO Auto-generated method stub
ArrayList
<
PollAnswer
>
ret
=
new
ArrayList
<
PollAnswer
>();
return
null
;
for
(
List
<
QuestionWrapper
>
qw
:
pages
.
values
())
{
for
(
QuestionWrapper
wrapper
:
qw
)
{
ret
.
add
(
wrapper
.
getAnswer
());
}
}
return
ret
;
}
}
public
boolean
validate
(
PollView
pollView
)
{
public
boolean
validate
(
PollView
pollView
)
{
boolean
ret
=
true
;
boolean
ret
=
true
;
// STuff
return
ret
;
return
ret
;
}
}
...
...
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