/
issue_detail_edit.xhtml
37 lines (37 loc) · 1.25 KB
/
issue_detail_edit.xhtml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
<ui:composition
xmlns="http://www.w3.org/1999/xhtml"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:ui="http://java.sun.com/jsf/facelets"
xmlns:p="http://primefaces.org/ui"
>
<h:form id="manageIssue" styleClass="manageIssueClass">
<p:commandButton
id="saveNewEventButton"
value="Add Event"
action="#{myIssuesController.addIssueEvent}"
process="@this @(.newEventCommentClass)"
update="@this @(.issueEventsClass)"
/>
<br />
<p:inputTextarea
id="newEventComment"
styleClass="newEventCommentClass"
value="#{event.comment}"
onkeyup="$('.newEventCommentClass').val($(this).val())"
/>
<p:dataTable
id="issueEvents"
styleClass="issueEventsClass"
value="#{selectedIssue.events}"
var="tevent"
>
<p:column headerText="Event Date">
<h:outputText value="#{tevent.eventDate}" />
</p:column>
<p:column headerText="Comment">
<h:outputText value="#{tevent.comment}" />
</p:column>
</p:dataTable>
</h:form>
</ui:composition>