<?xml version="1.0" encoding="UTF-8"?>
<page xmlns="http://jboss.com/products/seam/pages"
      xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
      xsi:schemaLocation="http://jboss.com/products/seam/pages http://jboss.com/products/seam/pages-2.2.xsd"
      no-conversation-view-id="/PaymentsList.xhtml"
      login-required="true">

   <begin-conversation join="true" flush-mode="MANUAL"/>

   <action execute="#{paymentsHome.wire}"/>

   <param name="paymentsFrom"/>
   <param name="paymentsPaymentnumber" value="#{paymentsHome.paymentsPaymentnumber}"/>
   <param name="customersFrom"/>
   <param name="customersCustomernumber" value="#{customersHome.customersCustomernumber}"/>
   <param name="employeesFrom"/>
   <param name="employeesEmployeenumber" value="#{employeesHome.employeesEmployeenumber}"/>




   <navigation from-action="#{paymentsHome.persist}">
      <rule if-outcome="persisted">
         <end-conversation/>
         <redirect view-id="/Payments.xhtml"/>
      </rule>
   </navigation>

   <navigation from-action="#{paymentsHome.update}">
      <rule if-outcome="updated">
         <end-conversation/>
         <redirect view-id="/Payments.xhtml"/>
      </rule>
   </navigation>

   <navigation from-action="#{paymentsHome.remove}">
      <rule if-outcome="removed">
         <end-conversation/>
         <redirect view-id="/PaymentsList.xhtml"/>
      </rule>
   </navigation>

</page>
