Commit 8f529541 by juhosa

Actionlogcreate juttuja

1 parent e8ea3180
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) {
}
}
package fi.insomnia.bortal.beans;
import javax.ejb.Local;
@Local
public interface ActionLogBeanLocal {
}
<!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
......@@ -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
......
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;
}
}
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;
}
}
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!