publisherVersion.xhtml
4.64 KB
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:h="http://xmlns.jcp.org/jsf/html"
xmlns:ui="http://xmlns.jcp.org/jsf/facelets"
xmlns:f="http://xmlns.jcp.org/jsf/core"
xmlns:jsf="http://xmlns.jcp.org/jsf">
<head>
<f:metadata>
<f:viewParam name="publisherVersionId" value="#{publisherVersionView.publisherVersionId}" />
<f:viewAction action="#{publisherVersionView.loadData}" />
</f:metadata>
</head>
<body>
<form jsf:id="publisherVersion" action="">
<ul>
<li>
<a jsf:outcome="/index">Menu principal</a>
</li>
<li>
<a jsf:outcome="listPublisherVersions">Liste des versions des éditeurs</a>
</li>
<li>
<a jsf:outcome="listPublisherActions">Liste des actions des éditeurs</a>
</li>
</ul>
<h:panelGrid columns="2">
<label for="publisherName">publisherName</label>
<input type="text" id="publisherName" jsf:value='#{publisherVersionView.publisherName}' jsf:disabled="#{not publisherVersionView.editMode}"/>
<label for="streetAddress">streetAddress</label>
<input type="text" id="streetAddress" jsf:value='#{publisherVersionView.streetAddress}' jsf:disabled="#{not publisherVersionView.editMode}"/>
<label for="postalCode">postalCode</label>
<input type="text" id="postalCode" jsf:value='#{publisherVersionView.postalCode}' jsf:disabled="#{not publisherVersionView.editMode}"/>
<label for="postOfficeBoxNumber">postOfficeBoxNumber</label>
<input type="text" id="postOfficeBoxNumber" jsf:value='#{publisherVersionView.postOfficeBoxNumber}' jsf:disabled="#{not publisherVersionView.editMode}"/>
<label for="addressRegion">addressRegion</label>
<input type="text" id="addressRegion" jsf:value='#{publisherVersionView.addressRegion}' jsf:disabled="#{not publisherVersionView.editMode}"/>
<label for="addressLocality">addressLocality</label>
<input type="text" id="addressLocality" jsf:value='#{publisherVersionView.addressLocality}' jsf:disabled="#{not publisherVersionView.editMode}"/>
<label for="publisherAddressCountry">publisherAddressCountry</label>
<h:selectOneMenu id="publisherAddressCountry" value="#{publisherVersionView.publisherAddressCountry}" converter="omnifaces.SelectItemsConverter" disabled="#{not publisherVersionView.editMode}">
<f:selectItems value="#{publisherVersionView.availableCountries}" var="country" itemLabel="#{country.countryName}"/>
</h:selectOneMenu>
<label for="telephone">telephone</label>
<input type="text" id="telephone" jsf:value='#{publisherVersionView.telephone}' jsf:disabled="#{not publisherVersionView.editMode}"/>
<label for="email">email</label>
<input type="text" id="email" jsf:value='#{publisherVersionView.email}' jsf:disabled="#{not publisherVersionView.editMode}"/>
<label for="uRL">uRL</label>
<input type="text" id="uRL" jsf:value='#{publisherVersionView.uRL}' jsf:disabled="#{not publisherVersionView.editMode}"/>
<label for="publisherHistory">publisherHistory</label>
<textarea id="publisherHistory" rows="" cols="" jsf:disabled="#{not publisherVersionView.editMode}" jsf:value="#{publisherVersionView.publisherHistory}"/>
<div jsf:rendered="#{not publisherVersionView.newPublisher}">publisherVersionAuthor</div>
<div jsf:rendered="#{not publisherVersionView.newPublisher}">#{publisherVersionView.publisherVersionAuthor.displayName}</div>
<div jsf:rendered="#{not publisherVersionView.newPublisher}">publisherVersionDatetime</div>
<div jsf:rendered="#{not publisherVersionView.newPublisher}">#{publisherVersionView.publisherVersionDatetime}</div>
<button jsf:rendered="#{not publisherVersionView.editMode}" jsf:action="#{publisherVersionView.edit}">Edit</button>
<button jsf:rendered="#{publisherVersionView.editMode}" jsf:action="#{publisherVersionView.save}">Save</button>
<button jsf:rendered="#{publisherVersionView.editMode}" jsf:action="#{publisherVersionView.cancel}">Cancel</button>
</h:panelGrid>
</form>
<h:dataTable value="#{publisherVersionView.publisherActions}" var="action">
<h:column>
<f:facet name="header"/>
${action.actionType.name()}
</h:column>
<h:column>
<f:facet name="header"/>
${action.publisherActionAuthor.displayName}
</h:column>
<h:column>
<f:facet name="header"/>
${action.publisherActionDatetime}
</h:column>
</h:dataTable>
</body>
</html>