Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
Antti Väyrynen
/
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 2ac8beb0
authored
Dec 18, 2011
by
Antti Tonkyra
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added actionlog stuff
1 parent
c6873b69
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
105 additions
and
0 deletions
code/LanBortalWeb/WebContent/actionlog/create.xhtml
code/LanBortalWeb/WebContent/actionlog/messagelist.xhtml
code/LanBortalWeb/src/fi/insomnia/bortal/web/cdiview/actionlog/ActionLogMessageView.java
code/LanBortalWeb/src/fi/insomnia/bortal/web/cdiview/actionlog/ActionMessage.java
code/LanBortalWeb/WebContent/actionlog/create.xhtml
0 → 100644
View file @
2ac8beb
File mode changed
code/LanBortalWeb/WebContent/actionlog/messagelist.xhtml
0 → 100644
View file @
2ac8beb
<!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:users=
"http://java.sun.com/jsf/composite/cditools/user"
xmlns:tools=
"http://java.sun.com/jsf/composite/cditools"
xmlns:f=
"http://java.sun.com/jsf/core"
>
<h:body>
<ui:composition
template=
"/layout/#{sessionHandler.layout}/template.xhtml"
>
<f:metadata>
<!-- f:event type="preRenderView" listener="#{newsListView.initView}" /-->
</f:metadata>
<ui:define
name=
"content"
>
<h1>
#{i18n['actionlog.messagelist.header']}
</h1>
<h:dataTable
styleClass=
"bordertable"
id=
"message"
value=
"#{actionLogMessageView.messages}"
var=
"message"
>
<h:column>
<f:facet
name=
"header"
>
<h:outputText
value=
"#{i18n['actionlog.user']}"
/>
</f:facet>
<h:outputText
value=
"#{message.user}"
/>
</h:column>
<h:column>
<f:facet
name=
"header"
>
<h:outputText
value=
"#{i18n['actionlog.crew']}"
/>
</f:facet>
<h:outputText
value=
"#{message.crew}"
/>
</h:column>
<h:column>
<f:facet
name=
"header"
>
<h:outputText
value=
"#{i18n['actionlog.message']}"
/>
</f:facet>
<h:outputText
value=
"#{message.message}"
/>
</h:column>
</h:dataTable>
</ui:define>
</ui:composition>
</h:body>
</html>
\ No newline at end of file
code/LanBortalWeb/src/fi/insomnia/bortal/web/cdiview/actionlog/ActionLogMessageView.java
0 → 100644
View file @
2ac8beb
package
fi
.
insomnia
.
bortal
.
web
.
cdiview
.
actionlog
;
import
java.util.ArrayList
;
import
javax.faces.bean.RequestScoped
;
import
javax.inject.Named
;
import
fi.insomnia.bortal.web.cdiview.actionlog.ActionMessage
;
import
fi.insomnia.bortal.web.cdiview.GenericCDIView
;
@Named
@RequestScoped
public
class
ActionLogMessageView
extends
GenericCDIView
{
private
static
final
long
serialVersionUID
=
1L
;
ArrayList
<
ActionMessage
>
messages
=
null
;
public
ArrayList
<
ActionMessage
>
getMessages
()
{
if
(
messages
==
null
)
{
messages
=
new
ArrayList
<
ActionMessage
>();
ActionMessage
test
=
new
ActionMessage
();
test
.
setTimestamp
(
"test123"
);
test
.
setUser
(
"homo"
);
test
.
setCrew
(
"oijdsaofdsa"
);
test
.
setMessage
(
"pupu on siella"
);
messages
.
add
(
test
);
messages
.
add
(
test
);
messages
.
add
(
test
);
messages
.
add
(
test
);
}
return
messages
;
}
}
code/LanBortalWeb/src/fi/insomnia/bortal/web/cdiview/actionlog/ActionMessage.java
0 → 100644
View file @
2ac8beb
package
fi
.
insomnia
.
bortal
.
web
.
cdiview
.
actionlog
;
public
class
ActionMessage
{
private
String
timestamp
;
private
String
user
;
private
String
crew
;
private
String
message
;
public
String
getTimestamp
()
{
return
timestamp
;
}
public
void
setTimestamp
(
String
timestamp
)
{
this
.
timestamp
=
timestamp
;
}
public
String
getUser
()
{
return
user
;
}
public
void
setUser
(
String
user
)
{
this
.
user
=
user
;
}
public
String
getCrew
()
{
return
crew
;
}
public
void
setCrew
(
String
crew
)
{
this
.
crew
=
crew
;
}
public
String
getMessage
()
{
return
message
;
}
public
void
setMessage
(
String
message
)
{
this
.
message
=
message
;
}
}
\ No newline at end of file
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