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:ui="http://java.sun.com/jsf/facelets"
|
|
6 xmlns:a4j="http://richfaces.org/a4j"
|
|
7 xmlns:rich="http://richfaces.org/rich"
|
|
8 xmlns:composite="http://java.sun.com/jsf/composite"
|
|
9 xmlns:ismi="http://java.sun.com/jsf/composite/components/ismi">
|
|
10
|
|
11 <composite:interface>
|
|
12 <composite:attribute name="value" required="true" />
|
|
13 <composite:attribute name="deploy" default="true" />
|
|
14 </composite:interface>
|
|
15
|
|
16
|
|
17 <composite:implementation>
|
|
18
|
|
19 <h:panelGrid rendered="#{cc.attrs.deploy}" width="100%">
|
|
20
|
|
21 <h:panelGrid columns="3" styleClass="createPanel"
|
|
22 columnClasses="createPanelFirstColumn" id="entityListArea">
|
|
23
|
|
24
|
|
25 <h:outputText value="#{cc.attrs.value.title}" />
|
|
26
|
|
27 <h:panelGrid columns="2" width="100%">
|
|
28
|
|
29 <h:dataTable value="#{cc.attrs.value.entities}" var="item"
|
|
30 rendered="#{!empty cc.attrs.value.entities}">
|
|
31 <h:column>
|
|
32 <h:outputText value="[#{item.id}] #{item.ownValue}" />
|
|
33 </h:column>
|
|
34 <h:column>
|
|
35 <h:selectBooleanCheckbox
|
|
36 value="#{cc.attrs.value.selections[item.id]}" />
|
|
37 </h:column>
|
|
38 </h:dataTable>
|
|
39 <h:commandButton
|
|
40 rendered="#{!empty cc.attrs.value.entities}"
|
|
41 value="Remove Selection"
|
|
42 actionListener="#{cc.attrs.value.listenerRemoveSelection}"
|
|
43 style="float: right;" />
|
|
44
|
|
45 <h:panelGrid id="witnessTitlePanel">
|
|
46 <ismi:autocomplete lo="#{cc.attrs.value.lo}" />
|
|
47 </h:panelGrid>
|
|
48 <h:commandButton value="Add"
|
|
49 actionListener="#{cc.attrs.value.listenerAdd}" />
|
|
50
|
|
51 </h:panelGrid>
|
|
52
|
|
53 <h:outputText />
|
|
54
|
|
55 </h:panelGrid>
|
|
56 </h:panelGrid>
|
|
57
|
|
58 </composite:implementation>
|
|
59 </html>
|