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