1. vmorsiani
  2. jticketing

Commits

vmorsiani  committed 9abf91c

ticket creation set ticket as parameter to create ticket bean

  • Participants
  • Parent commits 61d3ba5
  • Branches master

Comments (0)

Files changed (2)

File jticketing-webapp/src/main/java/org/wanna/jticketing/web/beans/ticket/TicketEditorBean.java

View file
  • Ignore whitespace
         this.ticket = ticket;
     }
 
-    public void create(){
+    public void create(TicketEntity ticket){
         LOG.info("creating ticket");
         ticket.setReporter(super.getCurrentUser());
         ticketService.createTicket(ticket);

File jticketing-webapp/src/main/webapp/resources/components/tickets/editor.xhtml

View file
  • Ignore whitespace
                                    itemValue="#{category}"/>
                 </p:selectOneMenu>
                 <f:facet name="footer">
-                    <p:commandButton value="#{message['button.create']}" action="#{ticketEditorBean.create}"/>
+                    <p:commandButton value="#{message['button.create']}" action="#{ticketEditorBean.create(cc.attrs.value)}"/>
                 </f:facet>
             </p:panelGrid>