// Is cache there?
if (!this.receiptCache.iterator().hasNext()) {
// Add all
- for (final BillableReceipt receipt : this.receiptBean.allReceipts()) {
+ for (final BillableReceipt receipt : this.receiptBean.fetchAllReceipts()) {
// Add it to cache
this.receiptCache.put(receipt.getReceiptId(), receipt);
}
// Is cache there?
if (!this.receiptItemCache.iterator().hasNext()) {
// Add all
- for (final BillableReceiptItem receiptItem : this.receiptItemBean.allReceiptItems()) {
+ for (final BillableReceiptItem receiptItem : this.receiptItemBean.fetchAllReceiptItems()) {
// Add it to cache
this.receiptItemCache.put(receiptItem.getItemId(), receiptItem);
}
xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/javaee http://xmlns.jcp.org/xml/ns/javaee/web-facelettaglibrary_2_2.xsd"
>
<namespace>http://mxchange.org/jsf/jfinancials/links</namespace>
- <tag>
- <tag-name>outputReceiptAdminDropdownMenu</tag-name>
- <description>This tag renders a full h:panelGroup for an administrative drop-down menu for receipt data.</description>
- <source>resources/tags/admin/dropdown/financial/receipt/admin_receipt_links.tpl</source>
- <attribute>
- <name>receipt</name>
- <description>The receipt instance that provides the data for this tag.</description>
- <required>true</required>
- <type>org.mxchange.jfinancials.model.receipt.BillableReceipt</type>
- </attribute>
- <attribute>
- <name>renderShowLink</name>
- <description>Whether this tag is used to show receipt data (default true).</description>
- <required>false</required>
- <type>java.lang.Boolean</type>
- </attribute>
- <attribute>
- <name>rendered</name>
- <description>Whether this tag is being rendered by JSF engine (default: true).</description>
- <required>false</required>
- <type>java.lang.Boolean</type>
- </attribute>
- </tag>
- <tag>
- <tag-name>outputReceiptItemAdminDropdownMenu</tag-name>
- <description>This tag renders a full h:panelGroup for an administrative drop-down menu for receipt item data.</description>
- <source>resources/tags/admin/dropdown/financial/receipt_item/admin_receipt_item_links.tpl</source>
- <attribute>
- <name>receiptItem</name>
- <description>The receipt item instance that provides the data for this tag.</description>
- <required>true</required>
- <type>org.mxchange.jfinancials.model.receipt_item.BillableReceiptItem</type>
- </attribute>
- <attribute>
- <name>renderShowLink</name>
- <description>Whether this tag is used to show receipt item data (default true).</description>
- <required>false</required>
- <type>java.lang.Boolean</type>
- </attribute>
- <attribute>
- <name>rendered</name>
- <description>Whether this tag is being rendered by JSF engine (default: true).</description>
- <required>false</required>
- <type>java.lang.Boolean</type>
- </attribute>
- </tag>
</facelet-taglib>
+++ /dev/null
-<?xml version="1.0" encoding="UTF-8" ?>
-<ui:composition
- xmlns="http://www.w3.org/1999/xhtml"
- xmlns:f="http://java.sun.com/jsf/core"
- xmlns:h="http://java.sun.com/jsf/html"
- xmlns:ui="http://xmlns.jcp.org/jsf/facelets"
- xmlns:p="http://primefaces.org/ui"
- >
-
- <p:menuButton value="#{msg.OPTIONS}" rendered="#{empty rendered or rendered}">
- <p:menuitem outcome="admin_show_receipt" value="#{msg.ADMIN_LINK_SHOW_SHORT}" title="#{project.ADMIN_LINK_SHOW_RECEIPT_TITLE}" rendered="#{empty renderShowLink or renderShowLink}">
- <f:param name="receiptId" value="#{receipt.receiptId}" />
- </p:menuitem>
-
- <p:menuitem outcome="admin_edit_receipt" value="#{msg.ADMIN_LINK_EDIT_SHORT}" title="#{project.ADMIN_LINK_EDIT_RECEIPT_TITLE}">
- <f:param name="receiptId" value="#{receipt.receiptId}" />
- </p:menuitem>
-
- <p:menuitem outcome="admin_delete_receipt">
- <h:outputText styleClass="link-danger" value="#{msg.ADMIN_LINK_DELETE_SHORT}" title="#{project.ADMIN_LINK_DELETE_RECEIPT_TITLE}" />
- <f:param name="receiptId" value="#{receipt.receiptId}" />
- </p:menuitem>
- </p:menuButton>
-</ui:composition>
+++ /dev/null
-<?xml version="1.0" encoding="UTF-8" ?>
-<ui:composition
- xmlns="http://www.w3.org/1999/xhtml"
- xmlns:f="http://java.sun.com/jsf/core"
- xmlns:h="http://java.sun.com/jsf/html"
- xmlns:ui="http://xmlns.jcp.org/jsf/facelets"
- xmlns:p="http://primefaces.org/ui"
- >
-
- <p:menuButton value="#{msg.OPTIONS}" rendered="#{empty rendered or rendered}">
- <p:menuitem outcome="admin_show_receipt_item" value="#{msg.ADMIN_LINK_SHOW_SHORT}" title="#{project.ADMIN_LINK_SHOW_RECEIPT_ITEM_TITLE}" rendered="#{empty renderShowLink or renderShowLink}">
- <f:param name="receiptId" value="#{receiptItem.itemId}" />
- </p:menuitem>
-
- <p:menuitem outcome="admin_edit_receipt_item" value="#{msg.ADMIN_LINK_EDIT_SHORT}" title="#{project.ADMIN_LINK_EDIT_RECEIPT_ITEM_TITLE}">
- <f:param name="receiptId" value="#{receiptItem.itemId}" />
- </p:menuitem>
-
- <p:menuitem outcome="admin_delete_receipt_item">
- <h:outputText styleClass="link-danger" value="#{msg.ADMIN_LINK_DELETE_SHORT}" title="#{project.ADMIN_LINK_DELETE_RECEIPT_ITEM_TITLE}" />
- <f:param name="receiptId" value="#{receiptItem.itemId}" />
- </p:menuitem>
- </p:menuButton>
-</ui:composition>
<f:selectItem itemValue="#{null}" itemLabel="#{msg.PLEASE_SELECT}" noSelectionOption="true" itemDisabled="true" />
<f:selectItems
- value="#{branchOfficeListController.allBranchOffices()}"
+ value="#{branchOfficeListController.allBranchOffices}"
var="branchOffice"
itemValue="#{branchOffice}"
itemLabel="#{beanHelper.renderBranchOffice(branchOffice)}"
<f:selectItem itemValue="#{null}" itemLabel="#{msg.NONE_SELECTED}" />
<f:selectItems
- value="#{employeeController.allEmployees()}"
+ value="#{employeeListController.allEmployees}"
var="employee"
itemValue="#{employee}"
itemLabel="#{beanHelper.renderEmployee(employee)}"
<f:selectItem itemValue="#{null}" itemLabel="#{msg.PLEASE_SELECT}" noSelectionOption="true" itemDisabled="true" />
<f:selectItems
- value="#{branchOfficeListController.allBranchOffices()}"
+ value="#{branchOfficeListController.allBranchOffices}"
var="branchOffice"
itemValue="#{branchOffice}"
itemLabel="#{beanHelper.renderBranchOffice(branchOffice)}"
<f:selectItem itemValue="#{null}" itemLabel="#{msg.NONE_SELECTED}" />
<f:selectItems
- value="#{employeeController.allEmployees()}"
+ value="#{employeeListController.allEmployees}"
var="companyHeadquarter"
itemValue="#{companyEmployee}"
itemLabel="#{beanHelper.renderEmployee(companyEmployee)}"
<f:converter converterId="BranchOfficeConverter" />
<f:selectItems
- value="#{branchOfficeListController.allBranchOffices()}"
+ value="#{branchOfficeListController.allBranchOffices}"
var="branchOffice"
itemValue="#{branchOffice}"
itemLabel="#{beanHelper.renderBranchOffice(branchOffice)}"
<f:selectItem itemValue="#{null}" itemLabel="#{msg.NONE_SELECTED}" />
<f:selectItems
- value="#{employeeController.allEmployees()}"
+ value="#{employeeListController.allEmployees}"
var="employee"
itemValue="#{employee}"
itemLabel="#{beanHelper.renderEmployee(employee)}"
headerText="#{msg.ADMIN_ACTION_LINKS_HEADER}"
sortable="false"
>
- <pl:outputReceiptAdminDropdownMenu receipt="#{receipt}" />
+ <p:menuButton value="#{msg.OPTIONS}">
+ <p:menuitem
+ outcome="admin_show_receipt"
+ value="#{msg.ADMIN_LINK_SHOW_SHORT}"
+ title="#{project.ADMIN_LINK_SHOW_RECEIPT_TITLE}"
+ >
+ <f:param name="receiptId" value="#{receipt.receiptId}" />
+ </p:menuitem>
+
+ <p:menuitem
+ outcome="admin_edit_receipt"
+ value="#{msg.ADMIN_LINK_EDIT_SHORT}"
+ title="#{project.ADMIN_LINK_EDIT_RECEIPT_TITLE}"
+ >
+ <f:param name="receiptId" value="#{receipt.receiptId}" />
+ </p:menuitem>
+
+ <p:menuitem outcome="admin_delete_receipt">
+ <h:outputText
+ styleClass="link-danger"
+ value="#{msg.ADMIN_LINK_DELETE_SHORT}"
+ title="#{project.ADMIN_LINK_DELETE_RECEIPT_TITLE}"
+ />
+ <f:param name="receiptId" value="#{receipt.receiptId}" />
+ </p:menuitem>
+ </p:menuButton>
</p:column>
</p:dataTable>
headerText="#{msg.ADMIN_ACTION_LINKS_HEADER}"
sortable="false"
>
- <pl:outputReceiptItemAdminDropdownMenu receiptItem="#{receiptItem}" />
+ <p:menuButton value="#{msg.OPTIONS}">
+ <p:menuitem
+ outcome="admin_show_receipt_item"
+ value="#{msg.ADMIN_LINK_SHOW_SHORT}"
+ title="#{project.ADMIN_LINK_SHOW_RECEIPT_ITEM_TITLE}"
+ >
+ <f:param name="receiptId" value="#{receiptItem.itemId}" />
+ </p:menuitem>
+
+ <p:menuitem
+ outcome="admin_edit_receipt_item"
+ value="#{msg.ADMIN_LINK_EDIT_SHORT}"
+ title="#{project.ADMIN_LINK_EDIT_RECEIPT_ITEM_TITLE}"
+ >
+ <f:param name="receiptId" value="#{receiptItem.itemId}" />
+ </p:menuitem>
+
+ <p:menuitem outcome="admin_delete_receipt_item">
+ <h:outputText
+ styleClass="link-danger"
+ value="#{msg.ADMIN_LINK_DELETE_SHORT}"
+ title="#{project.ADMIN_LINK_DELETE_RECEIPT_ITEM_TITLE}"
+ />
+ <f:param name="receiptId" value="#{receiptItem.itemId}" />
+ </p:menuitem>
+ </p:menuButton>
</p:column>
</p:dataTable>