Commit 8fdabbb1 by Antti Tonkyra

VotingBean now throws in the event

1 parent 893660af
...@@ -23,6 +23,8 @@ public class VotingBean implements VotingBeanLocal { ...@@ -23,6 +23,8 @@ public class VotingBean implements VotingBeanLocal {
private CompoFacade compoFacade; private CompoFacade compoFacade;
@EJB @EJB
private VoteFacade voteFacade; private VoteFacade voteFacade;
@EJB
private EventBean eventBean;
/** /**
* Default constructor. * Default constructor.
...@@ -36,6 +38,7 @@ public class VotingBean implements VotingBeanLocal { ...@@ -36,6 +38,7 @@ public class VotingBean implements VotingBeanLocal {
} }
public void createCompo(Compo c) { public void createCompo(Compo c) {
c.setEvent(eventBean.getCurrentEvent());
compoFacade.create(c); compoFacade.create(c);
} }
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!