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
|
|
10 <composite:interface>
|
|
11 <composite:attribute name="lo" required="true" />
|
|
12 </composite:interface>
|
|
13
|
|
14 <composite:implementation>
|
|
15
|
|
16 <h:panelGrid border="0" columns="1">
|
|
17
|
|
18 <h:panelGrid columns="2">
|
|
19
|
|
20 <h:panelGrid columns="1">
|
|
21 <h:inputText value="#{cc.attrs.lo.term}"
|
|
22 valueChangeListener="#{cc.attrs.lo.valueChangeMethod}" size="100"
|
|
23 styleClass="inputTextAutocomplete" autocomplete="off">
|
|
24 <a4j:ajax event="keyup" render="out" />
|
|
25 <a4j:ajax event="click" listener="#{cc.attrs.lo.onClick}"
|
|
26 render="out,smile,displayEntity" />
|
|
27 </h:inputText>
|
|
28
|
|
29 <div class="suggestionArea">
|
|
30 <rich:dataTable id="out" var="item"
|
|
31 value="#{cc.attrs.lo.suggestedItems}" rows="10"
|
|
32 styleClass="suggestionTable">
|
|
33 <rich:column>
|
|
34 <h:commandLink
|
|
35 id="selectItem"
|
|
36 style="text-decoration:none;"
|
|
37 actionListener="#{cc.attrs.lo.actionListenerSelect}">
|
|
38 <div
|
|
39 class="suggestionItem"
|
|
40 id="suggestionItem">
|
|
41 #{item.label}</div>
|
|
42 </h:commandLink>
|
|
43 </rich:column>
|
|
44 </rich:dataTable>
|
|
45 </div>
|
|
46 </h:panelGrid>
|
|
47
|
|
48 <h:graphicImage binding="#{cc.attrs.lo.statusImage}" id="smile"/>
|
|
49
|
|
50 </h:panelGrid>
|
|
51
|
|
52 <h:panelGrid columns="2" id="displayEntity">
|
|
53
|
|
54 <h:outputText value="#{cc.attrs.lo.entityInfo}"
|
|
55 rendered="#{cc.attrs.lo.renderInfo}" />
|
|
56
|
|
57 <h:outputLink value="#{cc.attrs.lo.displayUrl}"
|
|
58 title="Display this entity"
|
|
59 rendered="#{!empty cc.attrs.lo.displayUrl}">
|
|
60 <h:graphicImage url="#{ApplicationBean1.displayImage}" />
|
|
61 </h:outputLink>
|
|
62 </h:panelGrid>
|
|
63
|
|
64 </h:panelGrid>
|
|
65
|
|
66
|
|
67 </composite:implementation>
|
|
68
|
|
69 </html>
|