Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
Codecrew
/
Moya
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
30
Merge Requests
2
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 8f529541
authored
Dec 18, 2011
by
juhosa
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Actionlogcreate juttuja
1 parent
e8ea3180
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
131 additions
and
0 deletions
code/LanBortalBeans/ejbModule/fi/insomnia/bortal/beans/ActionLogBean.java
code/LanBortalBeansClient/ejbModule/fi/insomnia/bortal/beans/ActionLogBeanLocal.java
code/LanBortalWeb/WebContent/actionlog/create.xhtml
code/LanBortalWeb/src/fi/insomnia/bortal/resources/i18n_fi.properties
code/LanBortalWeb/src/fi/insomnia/bortal/web/cdiview/actionlog/ActionLogCreateView.java
code/LanBortalWeb/src/fi/insomnia/bortal/web/cdiview/actionlog/Crew.java
code/LanBortalBeans/ejbModule/fi/insomnia/bortal/beans/ActionLogBean.java
0 → 100644
View file @
8f52954
package
fi
.
insomnia
.
bortal
.
beans
;
import
javax.ejb.Stateless
;
/**
* Session Bean implementation class ActionLogBean
* eventin
* - luominen
* - editointi
* - deletointi
*/
@Stateless
public
class
ActionLogBean
implements
ActionLogBeanLocal
{
/**
* Default constructor.
*/
public
ActionLogBean
()
{
// TODO Auto-generated constructor stub
}
public
void
createActionLogEvent
(
String
name
,
String
crew
,
String
message
)
{
}
}
code/LanBortalBeansClient/ejbModule/fi/insomnia/bortal/beans/ActionLogBeanLocal.java
0 → 100644
View file @
8f52954
package
fi
.
insomnia
.
bortal
.
beans
;
import
javax.ejb.Local
;
@Local
public
interface
ActionLogBeanLocal
{
}
code/LanBortalWeb/WebContent/actionlog/create.xhtml
View file @
8f52954
<!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"
>
<h:form>
<h1>
#{i18n['actionlog.create.header']}
</h1>
<h:outputText
value=
"#{i18n['actionlog.create.role']}"
/>
<h:selectOneMenu
value=
""
>
<f:selectItems
var=
"crew"
itemLabel=
"#{crew.name}"
value=
"#{actionLogCreateView.crews}"
/>
</h:selectOneMenu>
<h:outputText
value=
"#{i18n['actionlog.create.message']}"
/>
<h:inputText
/>
<h:outputText
value=
"#{i18n['actionlog.create.taskradio']}"
/>
<h:selectBooleanCheckbox
/>
<br
/>
<h:button
value=
"#{i18n['actionlog.create.submitbutton']}"
/>
</h:form>
</ui:define>
</ui:composition>
</h:body>
</html>
\ No newline at end of file
code/LanBortalWeb/src/fi/insomnia/bortal/resources/i18n_fi.properties
View file @
8f52954
...
...
@@ -381,6 +381,12 @@ actionlog.messagelist.header=Viestilista
actionlog.tasklist.header
=
Taskilista
actionlog.create.header
=
Luo eventti
actionlog.create.role
=
Rooli
actionlog.create.message
=
Viesti
actionlog.create.taskradio
=
Tm on taski
actionlog.create.submitbutton
=
Lhet
actionlog.time
=
Aika
actionlog.user
=
Tekij
actionlog.crew
=
Crew
...
...
code/LanBortalWeb/src/fi/insomnia/bortal/web/cdiview/actionlog/ActionLogCreateView.java
0 → 100644
View file @
8f52954
package
fi
.
insomnia
.
bortal
.
web
.
cdiview
.
actionlog
;
import
java.util.ArrayList
;
import
javax.enterprise.context.RequestScoped
;
import
javax.faces.model.SelectItem
;
import
javax.inject.Named
;
import
fi.insomnia.bortal.web.cdiview.GenericCDIView
;
@Named
@RequestScoped
public
class
ActionLogCreateView
extends
GenericCDIView
{
/**
*
*/
private
static
final
long
serialVersionUID
=
1L
;
private
ArrayList
<
Crew
>
crews
=
new
ArrayList
<
Crew
>();
public
ArrayList
<
Crew
>
getCrews
(){
crews
.
add
(
new
Crew
(
"1"
,
"joo"
));
crews
.
add
(
new
Crew
(
"2"
,
"jee"
));
return
crews
;
}
}
code/LanBortalWeb/src/fi/insomnia/bortal/web/cdiview/actionlog/Crew.java
0 → 100644
View file @
8f52954
package
fi
.
insomnia
.
bortal
.
web
.
cdiview
.
actionlog
;
public
class
Crew
{
private
String
id
;
private
String
name
;
public
Crew
(
String
id
,
String
nimi
)
{
this
.
id
=
id
;
this
.
name
=
nimi
;
}
public
String
getId
()
{
return
id
;
}
public
void
setId
(
String
id
)
{
this
.
id
=
id
;
}
public
String
getName
()
{
return
name
;
}
public
void
setName
(
String
name
)
{
this
.
name
=
name
;
}
}
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