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 753286a6
authored
Apr 06, 2012
by
Antti Tonkyra
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Messagelist realtimeness
1 parent
b5600e66
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
1 deletions
code/LanBortalWeb/WebContent/actionlog/messagelist.xhtml
code/LanBortalWeb/src/fi/insomnia/bortal/web/cdiview/actionlog/ActionLogMessageView.java
code/LanBortalWeb/WebContent/actionlog/messagelist.xhtml
View file @
753286a
...
...
@@ -4,6 +4,7 @@
<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"
xmlns:p=
"http://primefaces.prime.com.tr/ui"
>
<h:body>
...
...
@@ -45,6 +46,8 @@
<div
class=
"clearfix"
></div>
<h2>
#{i18n['actionlog.tasklist.header']}
</h2>
<div
id=
"actionlog"
>
<h:form
id=
"refresh"
>
<p:poll
interval=
"1"
update=
"actionlogtable"
/>
<h:dataTable
styleClass=
"bordertable"
rowClasses=
"roweven,rowodd"
id=
"actionlogtable"
value=
"#{actionLogMessageView.messages}"
var=
"message"
>
<h:column>
<f:facet
name=
"header"
>
...
...
@@ -52,7 +55,6 @@
</f:facet>
<h:outputText
value=
"#{message.time}"
>
<f:convertDateTime
type=
"both"
pattern=
"dd.MM.yyyy HH:mm"
/>
<!-- <f:convertDateTime type="both" dateStyle="HH:mm" /> -->
</h:outputText>
</h:column>
<h:column>
...
...
@@ -78,6 +80,7 @@
x
</h:column>
</h:dataTable>
</h:form>
</div>
</ui:define>
</ui:composition>
...
...
code/LanBortalWeb/src/fi/insomnia/bortal/web/cdiview/actionlog/ActionLogMessageView.java
View file @
753286a
...
...
@@ -15,9 +15,19 @@ import fi.insomnia.bortal.web.cdiview.GenericCDIView;
public
class
ActionLogMessageView
extends
GenericCDIView
{
private
static
final
long
serialVersionUID
=
1L
;
private
boolean
updateEnabled
=
true
;
@EJB
private
ActionLogBeanLocal
actionLogBean
;
public
boolean
getUpdateEnabled
()
{
return
updateEnabled
;
}
public
void
setUpdateEnabled
(
boolean
updateEnabled
)
{
this
.
updateEnabled
=
updateEnabled
;
}
public
List
<
ActionLogMessage
>
getMessages
()
{
return
actionLogBean
.
getAllActionLogEvents
();
}
...
...
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