<%--

/* $Header: txnUserActionDetails.jsp 18-jul-2007.11:33:43 rgraham Exp $ */
/* Copyright (c) 2001, 2007, Oracle. All rights reserved.  */
    
/*
   DESCRIPTION
  
   NOTES
    <other useful comments, qualifications, etc.>
  
   MODIFIED    (MM/DD/YY)
    rgraham        07/18/07 - show related steps for HTTP only
    andyao         06/23/07 - 
    rgraham        01/05/07 - change cancel event to GenSvcUIConstants.CANCEL_DETAILS_EVENT.
    andyao         11/09/06 - refactor web transaction UI
    saramasa       08/23/06 - Backport saramasa_bug_5192469_fix from main
    saramasa       07/25/06 - Fix for 5192469 - Added Sensitive Values 
    andyao         08/30/05 - fix no auto complete 
    andyao         07/24/05 - add fire partial action 
    andyao         06/16/05 - use display value 
    andyao         06/13/05 - add table summary 
    andyao         03/24/05 - 
    andyao         03/18/05 - 
    andyao         03/10/05 - make password read only 
    andyao         03/03/05 - support template password 
    andyao         01/07/05 - UI feedback 
    andyao         12/23/04 - fix header 
    andyao         11/24/04 - add support for template mode 
    andyao         11/01/04 - add wizard train 
    vjraghav       10/22/04 - 
    vjraghav       10/12/04 - Changing the property dropdowns 
    vjraghav       09/20/04 - Cutting over to the new and official metadata 
                              implementation 
    pmadyalk       09/15/04 - pmadyalk_txn_r2_1
    pmadyalk       09/14/04 - Txn R2 Changes 
    pmadyalk       21/08/04 - created.
 */

/**
 *  @version $Header: txnUserActionDetails.jsp 18-jul-2007.11:33:43 rgraham Exp $ 
 *  @author  pmadyalk
 *  @since   release specific (what release of product did this appear in)
 */
 --%>
<%@ page contentType="text/html; charset=UTF-8" %>
<%@ taglib uri="http://xmlns.oracle.com/uix/ui" prefix="uix" %>
<%@ taglib uri="http://xmlns.oracle.com/oem/jsp/tag" prefix="oem" %>
<%@ page import="oracle.sysman.eml.mntr.Constants"%>
<%@ page import="oracle.sysman.eml.chronos.WebsiteConstants"%>
<%@ page import="oracle.sysman.eml.gensvc.GenSvcUIConstants"%>
<%@ page import="java.util.Hashtable"%>
<%@ page import="oracle.sysman.eml.chronos.data.TransactionData"%>
<%@ page import="oracle.sysman.eml.chronos.data.HTTPTxnConfiguration"%>
<%@ page import="oracle.sysman.eml.gensvc.GenSvcPageSegmentTypes"%>
<jsp:useBean
  id="txnWizTableData"
  scope="request"
  type="oracle.sysman.eml.chronos.data.TxnWizTableData"/>

<uix:renderingContext id="renderingContext">
  <oem:setURLEncoder id="renderingContext"/>
  <uix:bundle  name="commonResourceBundle"
    class="oracle.sysman.resources.CommonResourceBundle"/>
  <uix:bundle  name="mntrResourceBundle"
    class="oracle.sysman.resources.MntrResourceBundle"/>
  <uix:bundle name="websiteResourceBundle"
    class="oracle.sysman.resources.website.WebsiteResourceBundle"/>
  <uix:bundle  name="http"
    class="oracle.sysman.eml.gensvc.test.http.resources.HTTPTestResource"/>

  <uix:document>
    <%@ include file="/enablePPR.jspf" %>
    <%@ include file="/oemTitle.jspf" %>
    <uix:body>
      <uix:form name="mainForm" method="POST">

        <uix:pageLayout>
          <%@ include file="/oemGlobal.jspf"%>
          <uix:dataScope currentDataBinding="@servletRequest">
            <%@ include file="/gensvc/message.jspf" %>
            <%@ include file="/gensvc/admin/createServiceDetailsTrain.jspf" %>

            <uix:header textBinding="pageHeader">
              <uix:formValue name="stepHashCode" valueBinding="stepHashCode"/>

              <% 
              TransactionData.Step step = (TransactionData.Step)request.getAttribute("step");
              String stepPageHeaderMode = request.getParameter("stepPageHeaderMode");
              String stepIdExist = "false";
              String defaultHTTPMethod = "false";
              if(step != null)
              {
              String stepId = step.getId();
              if (stepId != null && stepId.trim().length() > 0)
              {
              stepIdExist = "true";
              }
              if("false".equals(stepIdExist) && !"edit".equals(stepPageHeaderMode)) 
              defaultHTTPMethod = "true";
              }
              %>
              <uix:tableLayout borderWidth="0" width="100%">
                <uix:rowLayout hAlign="right"  vAlign="top">
                  <uix:cellFormat>
                    <uix:pageButtonBar>
                      <uix:switcher childNameBinding="isNextUserActionEnabled@txnWizTableData">
                        <uix:case name="true">  
                          <uix:submitButton  
                            textBinding="NEXT_USER_ACTION@websiteResourceBundle"  
                            name="<%=Constants.EVENT%>" 
                            value="<%=WebsiteConstants.NEXT_USER_ACTION_DETAIL_EVENT%>"
                            />     
                        </uix:case>
                      </uix:switcher>
                      <uix:submitButton textBinding="CANCEL@commonResourceBundle"
                        name="<%=Constants.EVENT%>"
                        value="<%=GenSvcUIConstants.CANCEL_DETAILS_EVENT%>"
                        unvalidated="true"/>
                      <uix:submitButton textBinding="CONTINUE@commonResourceBundle"
                        name="<%=Constants.EVENT%>"
                        value="<%=WebsiteConstants.CONTINUE_USER_ACTION_DETAIL_EVENT%>"
                        />
                    </uix:pageButtonBar>
                  </uix:cellFormat>
                </uix:rowLayout>

                <uix:rowLayout>
                  <uix:include nodeBinding="contextStepTree"/>
                </uix:rowLayout>

                <uix:rowLayout hAlign="left" vAlign="top">
                  <uix:cellFormat width="100" hAlign="left">
                    <uix:switcher childName="<%=stepIdExist%>">
                      <uix:case name="false">
                        <uix:messageTextInput
                          name="<%=WebsiteConstants.TXN_STEP_NAME%>"
                          id="NameID"
                          required="yes"
                          columns="40"
                          maximumLength="64"
                          promptBinding="NAME@commonResourceBundle"
                          textBinding="name@step@"/> 
                      </uix:case>
                    </uix:switcher>
                  </uix:cellFormat>
                </uix:rowLayout>
              </uix:tableLayout>

              <uix:tableLayout borderWidth="0" width="100%">

                <uix:rowLayout>
                  <uix:ref refID="<%=GenSvcPageSegmentTypes.GENSVC_STEP_PROPS%>"/> 
                </uix:rowLayout>

                <uix:switcher childNameBinding="testType@txnWizTableData@servletRequest">
                  <uix:case name="HTTP">
                    <uix:rowLayout>
                      <uix:header textBinding="SUB_STEPS@websiteResourceBundle">
                        <uix:stackLayout>
                          <%@ include file="/monitoring/website/txn/txnUserActionList.jsp"%>
                        </uix:stackLayout>
                      </uix:header>
                    </uix:rowLayout>
                  </uix:case>
                </uix:switcher>
              </uix:tableLayout>
            </uix:header>
          </uix:dataScope>

          <uix:contentFooter>
            <uix:pageButtonBar>

              <uix:switcher childNameBinding="isNextUserActionEnabled@txnWizTableData">
                <uix:case name="true">  
                  <uix:submitButton textBinding="NEXT_USER_ACTION@websiteResourceBundle"  
                    name="<%=Constants.EVENT%>" 
                    value="<%=WebsiteConstants.NEXT_USER_ACTION_DETAIL_EVENT%>"
                    unvalidated="true"/>           
                </uix:case>
              </uix:switcher>

              <uix:submitButton textBinding="CANCEL@commonResourceBundle"
                name="<%=Constants.EVENT%>"
                unvalidated="true"
                value="<%=GenSvcUIConstants.CANCEL_DETAILS_EVENT%>"
                />

              <uix:submitButton textBinding="CONTINUE@commonResourceBundle"
                name="<%=Constants.EVENT%>"
                value="<%=WebsiteConstants.CONTINUE_USER_ACTION_DETAIL_EVENT%>"
                />
            </uix:pageButtonBar>
          </uix:contentFooter>

        </uix:pageLayout>
      </uix:form>
    </uix:body>
  </uix:document>
</uix:renderingContext>

