<%--
  - FILE
  -   wizTemplateForProcessing.jspf
  -
  - DESCRIPTION
  -   A template for the Rac Provisioning Interview Wizard when the
  -   'processing' element is shown. It offers a choice to display
  -   the page button bar in the common UI elements.
  -
  - MODIFIED    (MM/DD/YY)
  -  audupi      10/11/05   - 
  -
  - SINCE
  -  10.2+
  --%>

<%@ page contentType="text/html; charset=UTF-8" %>
<%@ page import="oracle.sysman.pp.racprov.ui.rb.RacProvisioningRBID"%>
<%@ page import="oracle.sysman.pp.racprov.ui.RacProvisioningUtil"%>
<%@ page import="java.util.ResourceBundle"%>

<uix:renderingContext id="renderingContext">
  <%--Used for URL encoding, don't remove it--%>
  <oem:setURLEncoder  id="renderingContext"/>

  <uix:dataScope currentDataBinding="pageData@servletRequest">

  <%--Common UI messages --%>
  <uix:bundle
    name="sdkUIMsg"
    class="oracle.sysman.emSDK.eml.SDKUIMsg"/>

  <%--ResourceBundle for common labels/headers etc--%>
  <uix:bundle
    name="commonResourceBundle"
    class="oracle.sysman.resources.CommonResourceBundle"/>

  <%--ResourceBundle for labels/headers specific to Patch Advisor Project--%>
  <uix:bundle
    name="patchAdvisorRB"
    class="oracle.sysman.pp.pa.ui.rb.PatchAdvisorRB"/>

  <uix:bundle
    name="racProvisioningRB"
    class="oracle.sysman.pp.racprov.ui.rb.RacProvisioningRB"/>

  <%--ResourceBundle for schedule page labels/headers etc--%>
  <uix:bundle
    name="scheduleResourceBundle"
    class="oracle.sysman.eml.rsc.page.seg.sch.scheduleMsg"/>

  <uix:document>

    <%--To help in partial page renderring--%>
    <%@ include file="/enablePPR.jspf" %>

    <%--
      - To display "Oracle Enterprise Manager" followed by
      - UserName on PageTitle. To append page specific string
      - in the title implement getPageHeader() in the
      - CONTROLLER CLASS of YOUR JSP
      --%>
    <%@ include file="/oemTitle.jspf" %>

    <uix:body>

      <uix:form
        name="testingForm"
        method="post">

<%--        <uix:script
          id="racprovScript" source="/em/racprov/RacProvScripts.js"/> --%>


        <uix:pageLayout titleBinding="wizHeader@servletRequest">

          <%--To display GlobalTabs, Buttons, Footer, Copyright etc--%>
          <%@ include file="/oemGlobal.jspf" %>

          <%--To display the train wizard--%>
          <uix:location>
            <uix:train valueBinding="value@pageData@servletRequest">
              <uix:contents childDataBinding="trainChildren@pageData@servletRequest">
                <uix:link textBinding="text"/>
              </uix:contents>
            </uix:train>
          </uix:location>

          <%--To display the train navigation, cancel and finish buttons--%>
          <uix:pageButtons>
            <uix:pageButtonBar renderedBinding="processingComplete@stepsData@servletRequest">

              <%--Cancel button--%>
<%--              <uix:submitButton
                textBinding="CANCEL@sdkUIMsg"
                formName="testingForm"
                name="event"
                value="cancel"
                renderedBinding="rendered@cancelButtonData@pageData@servletRequest"/> --%>

<%
  ResourceBundle rb = RacProvisioningUtil.getResourceBundle( request );
  String cancelPopup = "if(confirm('" + 
          rb.getString(RacProvisioningRBID.CANCEL_POPUP) +
          "')) {submitForm('testingForm', true, {'event':'cancel'}); }";
%>


              <uix:button
                textBinding="CANCEL@sdkUIMsg"
                onClick="<%=cancelPopup%>"
                renderedBinding="rendered@cancelButtonData@pageData@servletRequest"/> 

              <%--
                - Next and Back button
                - Also displays the string depicting current step of total
                - steps
                --%>
              <uix:navigationBar
                name="wizardNavigationBar"
                formSubmitted="true"
                maxValueBinding="maxValue@navData@pageData@servletRequest"
                minValueBinding="minValue@navData@pageData@servletRequest"
                valueBinding="value@pageData@servletRequest"/>

              <%--Finish Button--%>
              <uix:submitButton
                textBinding="FINISH@sdkUIMsg"
                formName="testingForm"
                name="event"
                value="finish"
                disabledBinding="disabled@finshButtonData@pageData@servletRequest"
                renderedBinding="rendered@finishButtonData@pageData@servletRequest"/>

            </uix:pageButtonBar>
          </uix:pageButtons>

          <%--For error/information messages--%>
          <%@ include file="/ecm/wizard/messages.jspf" %>

          <uix:spacer height="5"/>

          <%--
            - Your page specific contents will be attached
            - here. Following tag does that. Your JSP page
            - should put all its contents WITHIN the
            - 'buildTree' tag with attributes
            -   nodeID="pageContent" and
            -   scope="request"
            - Also this template jsp should be included in
            - your JSP page at the end as follows
            -   <%@ include file="wizTemplate.jspf"%>
            --%>
          <uix:ref refID="pageContent"/>
        </uix:pageLayout>
      </uix:form>
    </uix:body>
  </uix:document>
</uix:dataScope>
</uix:renderingContext>


