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
| <ui:composition template="./template_test/hps_template.jspx "
xmlns="http://www.w3.org/1999/xhtml"
xmlns:ui="http://java.sun.com/jsf/facelets"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:a4j="http://richfaces.org/a4j"
xmlns:rich="http://richfaces.org/rich">
<script type="text/javascript">
RichFaces.showModalPanel('paneladd');
</script>
<ui:define name="header">
</ui:define>
<ui:define name="contenu">
<f:view>
<h:form>
<rich:modalPanel id="paneladd" width="650" height="250">
<f:facet name="header">
<h:outputText value="New Batch" />
</f:facet>
<f:facet name="controls">
<span style="cursor: pointer" onclick="javascript:Richfaces.hideModalPanel('paneladd') ">X</span>
</f:facet>
<h:panelGrid columns="2" border="1">
<h:outputLabel value="Bank"></h:outputLabel>
<rich:comboBox defaultLabel="select..." value="#{bean.bankName}">
<f:selectItems value="#{list_Items.countryList}" />
</rich:comboBox>
<h:outputLabel value="Code"></h:outputLabel>
<h:inputText value="#{bean.code}" maxlength="10" label="Code"></h:inputText>
<h:commandButton value="OK"
actionListener="#{cardBean.verifyClient}"></h:commandButton>
<a4j:commandButton value="Cancel"
oncomplete="javascript:Richfaces.hideModalPanel('paneladd');" />
</h:panelGrid>
</rich:modalPanel>
<h:panelGrid columns="4" border="1">
<h:outputLabel value="Bank"></h:outputLabel>
<h:outputText value="#{bean.bankName}"></h:outputText>
<h:outputLabel value="Batch"></h:outputLabel>
<h:outputText value="#{bean.batchnumber}"></h:outputText>
</h:panelGrid>
</h:form>
</f:view>
</ui:define>
<ui:define name="footer">
</ui:define>
</ui:composition> |
Partager