<%--
  - FILE
  -   vieweditcomponent.jsp
  -
  - DESCRIPTION
  -   Principal page for viewing/editing components in the sw library..
  -
  - MODIFIED   (MM/DD/YY)
  -   kashukla  08/31/05 - adding support for viewign a file 
  -   wsmit     01/04/05 - 
  -   wsmit     11/16/04   - 
  -   wsmit     11/10/04   - wsmit_provisioning_ui
  -   wsmit     10/18/04   - created
  -
  --%>

<%@ taglib uri="http://xmlns.oracle.com/uix/ui" prefix="uix" %>
<%@ taglib uri="http://xmlns.oracle.com/oem/jsp/tag" prefix="oem" %>

<%--need a timestamp? Not sure.--%>

<%--All page content within the editor is within this tag--%>

<uix:buildTree nodeID="pageContent" scope="request">
  <uix:subTabLayout>
    <%--Display the subtabs--%>
    <uix:subTabs>
      <uix:subTabBar selectedIndexBinding="tab@levelOnePage@ProvisionContext@servletRequest">
        <uix:contents childDataBinding="allTabs@levelOnePage@ProvisionContext@servletRequest">
          <uix:link textBinding="text" shortDescBinding="shortDesc"
            destinationBinding="destination" renderedBinding="rendered"/>
        </uix:contents>
      </uix:subTabBar>
    </uix:subTabs>
    <%--To display the subtab instruction text--%>
    <uix:tableLayout width="100%" cellSpacing="10" hAlign="center">
      <uix:rowLayout>
        <uix:styledText textBinding="instruction@levelOnePage@ProvisionContext@servletRequest"
                        styleClass="OraInstructionText "/>
      </uix:rowLayout>
    </uix:tableLayout>
    <uix:stackLayout>
      <uix:contents>
        <%--Dynamically include a JSP page for the current step--%>
        <% String formPage = (String)request.getAttribute("formPage"); %>
        <uix:include node="<%= formPage %>"/>
      </uix:contents>
    </uix:stackLayout>
  </uix:subTabLayout>
  <script>
    function handleSubtabClick(tab)
    {
      submitForm('componentForm',0,{'event':'editorSubtabEvent','editorSubtab' : tab});
    }

    function launchRfe(obj)
    {
        formObj = document.forms[0];
        var url = formObj.action+"?event="+obj;
        window.location.href = url;
        <%--openWindow(top, formObj.action+'?event='+obj, '', {width:750, height:550}, true, 'dialog', true);--%>
    }
  </script>
</uix:buildTree>
<%@ include file="/provision/editorTemplate.jspf" %>

