Created
June 11, 2014 06:45
-
-
Save priyankahdp/3336280ef09b59ac97b0 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | |
<ui:composition xmlns="http://www.w3.org/1999/xhtml" | |
xmlns:h="http://java.sun.com/jsf/html" | |
xmlns:a4j="http://richfaces.org/a4j" | |
xmlns:rich="http://richfaces.org/rich" | |
xmlns:f="http://java.sun.com/jsf/core" | |
xmlns:ui="http://java.sun.com/jsf/facelets"> | |
<rich:extendedDataTable value="#{treeBean.merchantService.currentSelection.children}" var="child" style="width:660px;height:250px;" id="merchantTable" | |
rendered="#{treeBean.merchantService.currentSelection != null}" > | |
<rich:column width="100px"> | |
<f:facet name="header"> | |
Type | |
</f:facet> | |
<h:outputText value="#{child.merchantType}"/> | |
</rich:column> | |
<rich:column width="170px"> | |
<f:facet name="header"> | |
Merchant Name | |
</f:facet> | |
#{child.name} | |
</rich:column> | |
<rich:column width="120px" style="width:20%"> | |
<f:facet name="header"> | |
BRC | |
</f:facet> | |
#{child.brc} | |
</rich:column> | |
<rich:column width="170px" style="width:20%"> | |
<f:facet name="header"> | |
Contact Person | |
</f:facet> | |
#{child.contactPerson} | |
</rich:column> | |
<rich:column width="90px" style="width:20%"> | |
<f:facet name="header"> | |
Edit | |
</f:facet> | |
<a4j:commandLink value="Edit" action="#{treeBean.editMerchant(child)}" immediate="true" execute="@this" render="regMerchantPanel"/> | |
</rich:column> | |
</rich:extendedDataTable> | |
</ui:composition> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | |
<ui:composition xmlns="http://www.w3.org/1999/xhtml" | |
xmlns:h="http://java.sun.com/jsf/html" | |
xmlns:a4j="http://richfaces.org/a4j" | |
xmlns:rich="http://richfaces.org/rich" | |
xmlns:f="http://java.sun.com/jsf/core" | |
xmlns:ui="http://java.sun.com/jsf/facelets"> | |
<rich:panel style="width:100%;height:500px;clear:both;" header="Merchants" id="pnlTreeMerch"> | |
<h:selectOneMenu id="cmbPos" style="width:100%;" | |
value="#{pOSController.selectedMerchant}" | |
converter="merchantBeanConverter" | |
converterMessage="test Message"> | |
<f:selectItem itemLabel="" itemValue="#{null}" | |
noSelectionOption="true" /> | |
<f:selectItems value="#{pOSController.listParentMerchants}" | |
var="merchant" itemLabel="#{merchant.name}" | |
itemValue="#{merchant}" /> | |
<a4j:ajax event="change" | |
render="#{rich:clientId('pnlTreeMerch')} #{rich:clientId('cmbLoc')}" /> | |
</h:selectOneMenu> | |
<br /> | |
<rich:panel style="width:99%;height:440px;"> | |
<rich:tree var="node" value="#{pOSController.leafMerchanBean}" | |
selectionChangeListener="#{pOSController.selectionChanged}" | |
toggleType="client" selectionType="ajax" | |
render="#{rich:clientId('tblMerchantLoc')} #{rich:clientId('pnlGrpPos')}"> | |
<rich:treeNode> | |
#{node.name} | |
</rich:treeNode> | |
</rich:tree> | |
</rich:panel> | |
</rich:panel> | |
</ui:composition> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | |
<ui:composition xmlns="http://www.w3.org/1999/xhtml" | |
xmlns:h="http://java.sun.com/jsf/html" | |
xmlns:a4j="http://richfaces.org/a4j" | |
xmlns:rich="http://richfaces.org/rich" | |
xmlns:f="http://java.sun.com/jsf/core" | |
xmlns:ui="http://java.sun.com/jsf/facelets"> | |
<rich:panel style="width:100%;height:500px;clear:both;" header="Merchants" id="pnlTreeMerch"> | |
<h:selectOneMenu id="cmbPos" style="width:100%;" | |
value="#{pOSController.selectedMerchant}" | |
converter="merchantBeanConverter" | |
converterMessage="test Message"> | |
<f:selectItem itemLabel="" itemValue="#{null}" | |
noSelectionOption="true" /> | |
<f:selectItems value="#{pOSController.listParentMerchants}" | |
var="merchant" itemLabel="#{merchant.name}" | |
itemValue="#{merchant}" /> | |
<a4j:ajax event="change" | |
render="#{rich:clientId('pnlTreeMerch')} #{rich:clientId('cmbLoc')}" /> | |
</h:selectOneMenu> | |
<br /> | |
<rich:panel style="width:99%;height:440px;"> | |
<rich:tree var="node" value="#{pOSController.leafMerchanBean}" | |
selectionChangeListener="#{pOSController.selectionChanged}" | |
toggleType="client" selectionType="ajax" | |
render="#{rich:clientId('tblMerchantLoc')} #{rich:clientId('pnlGrpPos')}"> | |
<rich:treeNode> | |
#{node.name} | |
</rich:treeNode> | |
</rich:tree> | |
</rich:panel> | |
</rich:panel> | |
</ui:composition> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment