7
|
1 <?xml version="1.0" encoding="utf-8"?>
|
|
2 <html xmlns="http://www.w3.org/1999/xhtml"
|
|
3 xmlns:h="http://java.sun.com/jsf/html"
|
|
4 xmlns:f="http://java.sun.com/jsf/core"
|
|
5 xmlns:ace="http://www.icefaces.org/icefaces/components"
|
|
6 xmlns:ice="http://www.icesoft.com/icefaces/component"
|
|
7 xmlns:composite="http://java.sun.com/jsf/composite">
|
|
8 <composite:interface>
|
|
9 <composite:attribute name="entityForm" required="true"/>
|
|
10 </composite:interface>
|
|
11
|
|
12 <composite:implementation>
|
|
13
|
|
14 <ice:panelPopup
|
|
15 autoCentre="true"
|
|
16 draggable="true"
|
|
17 modal="true"
|
|
18 rendered="#{cc.attrs.entityForm.refDataTable.showDialog}">
|
|
19 <f:facet name="header">
|
|
20 <ice:outputText value="Bibliographical References"/>
|
|
21 </f:facet>
|
|
22 <f:facet name="body">
|
|
23 <ice:panelGrid columns="1">
|
|
24
|
|
25 <ice:panelGrid columns="1">
|
|
26 <ice:panelGrid columns="6">
|
|
27 <ice:inputText value="#{cc.attrs.entityForm.refDataTable.term}"/>
|
|
28 <ice:commandButton value="Filter" actionListener="#{cc.attrs.entityForm.refDataTable.listenerFilter}"/>
|
|
29 <ice:commandButton value="Clean" actionListener="#{cc.attrs.entityForm.refDataTable.listenerReset}"/>
|
|
30 <ice:commandButton value="New" actionListener="#{cc.attrs.entityForm.refDataTable.listenerCreateReference}"/>
|
|
31 <ice:outputLabel value="Items size: #{cc.attrs.entityForm.refDataTable.itemsSize}"/>
|
|
32 </ice:panelGrid>
|
|
33 <ice:panelGrid columns="2">
|
|
34 <ice:outputLabel value="Sort by"/>
|
|
35 <ice:selectOneRadio
|
|
36 value="#{cc.attrs.entityForm.refDataTable.sortBy}"
|
|
37 valueChangeListener="#{cc.attrs.entityForm.refDataTable.listenerSort}">
|
|
38 <f:selectItems value="#{cc.attrs.entityForm.refDataTable.sortAlternatives}"/>
|
|
39 </ice:selectOneRadio>
|
|
40 </ice:panelGrid>
|
|
41 </ice:panelGrid>
|
|
42
|
|
43 <ace:dataTable
|
|
44 value="#{cc.attrs.entityForm.refDataTable.items}"
|
|
45 rendered="#{!empty cc.attrs.entityForm.refDataTable.items}"
|
|
46 var="refItem"
|
|
47 paginator="true"
|
|
48 rows="10">
|
|
49
|
|
50 <ace:column headerText="Id">
|
|
51 <ice:commandLink
|
|
52 value="#{refItem.publication.objid}"
|
|
53 actionListener="#{cc.attrs.entityForm.refDataTable.listenerSelectRefItem}" />
|
|
54 </ace:column>
|
|
55 <ace:column headerText="Title" styleClass="tableColumnLeft">
|
|
56 <ice:commandLink
|
|
57 value="#{refItem.publication.title}"
|
|
58 actionListener="#{cc.attrs.entityForm.refDataTable.listenerSelectRefItem}"
|
|
59 styleClass="elementTableColumnLeft"/>
|
|
60 </ace:column>
|
|
61 <ace:column headerText="Complete name" styleClass="tableColumnLeft">
|
|
62 <ice:commandLink
|
|
63 value="#{refItem.publication.creatorsAsString}"
|
|
64 actionListener="#{cc.attrs.entityForm.refDataTable.listenerSelectRefItem}"
|
|
65 styleClass="elementTableColumnLeft"/>
|
|
66 </ace:column>
|
|
67 <ace:column >
|
|
68 <ice:commandButton
|
|
69 value="Edit"
|
|
70 actionListener="#{cc.attrs.entityForm.refDataTable.listenerEditItem}"
|
|
71 styleClass="elementTableColumnLeft"
|
|
72 image="#{ApplicationBean1.editImage}"/>
|
|
73 </ace:column>
|
|
74
|
|
75 </ace:dataTable>
|
|
76 <ice:commandButton
|
|
77 value="Cancel"
|
|
78 actionListener="#{cc.attrs.entityForm.refDataTable.listenerClose}" />
|
|
79 </ice:panelGrid>
|
|
80 </f:facet>
|
|
81 </ice:panelPopup>
|
|
82
|
|
83 </composite:implementation>
|
|
84 </html>
|