| 1 | <!DOCTYPE composition PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" |
|---|
| 2 | "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> |
|---|
| 3 | <ui:composition xmlns="http://www.w3.org/1999/xhtml" |
|---|
| 4 | xmlns:ui="http://java.sun.com/jsf/facelets" |
|---|
| 5 | xmlns:h="http://java.sun.com/jsf/html" |
|---|
| 6 | xmlns:f="http://java.sun.com/jsf/core" |
|---|
| 7 | xmlns:sf="http://www.springframework.org/tags/faces" |
|---|
| 8 | xmlns:a4j="http://richfaces.org/a4j" |
|---|
| 9 | xmlns:rich="http://richfaces.org/rich"> |
|---|
| 10 | |
|---|
| 11 | <rich:modalPanel id="seriesModalPanel" width="700" height="150" |
|---|
| 12 | zindex="900"> |
|---|
| 13 | <f:facet name="header"> |
|---|
| 14 | <h:outputText |
|---|
| 15 | value="Condition [#{flowScope.websession.graphmodel.selectedSeries.seriesLabel}]" /> |
|---|
| 16 | </f:facet> |
|---|
| 17 | <f:facet name="controls"> |
|---|
| 18 | <h:panelGroup> |
|---|
| 19 | <h:graphicImage value="/image/icon/onebit_35.png" width="20px" |
|---|
| 20 | styleClass="hidelink" id="hidelink" /> |
|---|
| 21 | <rich:componentControl for="seriesModalPanel" attachTo="hidelink" |
|---|
| 22 | operation="hide" event="onclick" /> |
|---|
| 23 | </h:panelGroup> |
|---|
| 24 | </f:facet> |
|---|
| 25 | <a4j:form> |
|---|
| 26 | <rich:dataTable id="currentSeriesTable" |
|---|
| 27 | value="#{flowScope.websession.graphmodel.selectedSeries}" |
|---|
| 28 | bandingInterval="2" banding="row" rows="5" var="series" width="100%" |
|---|
| 29 | rendered="#{not empty flowScope.websession.graphmodel.selectedSeries}"> |
|---|
| 30 | |
|---|
| 31 | <f:facet name="header"> |
|---|
| 32 | <h:outputText value="Filter Conditions" /> |
|---|
| 33 | </f:facet> |
|---|
| 34 | |
|---|
| 35 | <rich:column> |
|---|
| 36 | <f:facet name="header"> |
|---|
| 37 | <h:outputText value="Field" /> |
|---|
| 38 | </f:facet> |
|---|
| 39 | <rich:comboBox style="width:100%" value="#{series.comparisonPredicate.fieldName}" suggestionValues="#{series.comparisonPredicate.possibleFieldNameValues}"> |
|---|
| 40 | </rich:comboBox> |
|---|
| 41 | </rich:column> |
|---|
| 42 | <rich:column> |
|---|
| 43 | <f:facet name="header"> |
|---|
| 44 | <h:outputText value="Operator" /> |
|---|
| 45 | </f:facet> |
|---|
| 46 | <rich:comboBox value="#{series.comparisonPredicate.compOp}" suggestionValues="#{series.comparisonPredicate.possibleComparisonOperatorValues}"> |
|---|
| 47 | </rich:comboBox> |
|---|
| 48 | </rich:column> |
|---|
| 49 | <rich:column> |
|---|
| 50 | <f:facet name="header"> |
|---|
| 51 | <h:outputText value="Value" /> |
|---|
| 52 | </f:facet> |
|---|
| 53 | <h:inputText style="width:100%" value="#{series.comparisonPredicate.value}" /> |
|---|
| 54 | </rich:column> |
|---|
| 55 | <!-- can not remove or add filters for the v1.0 so this is redundent --> |
|---|
| 56 | <rich:column> |
|---|
| 57 | <f:facet name="header"> |
|---|
| 58 | <h:outputText value="Remove" /> |
|---|
| 59 | </f:facet> |
|---|
| 60 | <h:graphicImage style="width:20px; text-align: center;" |
|---|
| 61 | value="/image/icon/onebit_33.png" /> |
|---|
| 62 | </rich:column> |
|---|
| 63 | |
|---|
| 64 | </rich:dataTable> |
|---|
| 65 | |
|---|
| 66 | <a4j:commandButton value="Save" onclick="#{rich:component('seriesModalPanel')}.hide()"/> |
|---|
| 67 | <!-- return false, after onclick nothing else is done e.g. a form submit --> |
|---|
| 68 | <a4j:commandButton value="Close" onclick="#{rich:component('seriesModalPanel')}.hide(); return false;"/> |
|---|
| 69 | |
|---|
| 70 | </a4j:form> |
|---|
| 71 | |
|---|
| 72 | </rich:modalPanel> |
|---|
| 73 | |
|---|
| 74 | </ui:composition> |
|---|