<page xmlns="http://bali.us.oracle.com/cabo/baja"
      xmlns:baja="http://bali.us.oracle.com/cabo/baja"
      xmlns:uix="http://bali.us.oracle.com/cabo/marlin"
      xmlns:marlin="http://bali.us.oracle.com/cabo/marlin"
      xmlns:html="http://www.w3.org/TR/REC-html40"
      xmlns:data="http://bali.us.oracle.com/cabo/marlin">

  <baja:head xmlns="http://www.w3.org/TR/REC-html40">
    <html:meta http-equiv="Cache-Control" content="max-age=0"/>
  </baja:head>

  <baja:content xmlns="http://bali.us.oracle.com/cabo/marlin">
    <dataScope>
      <contents>
        <html:title>
          <text data:text="title@emdGeneral"/>
        </html:title>

        <form name="emdConfigMain" method="POST">
        <contents>
          <pageLayout>
            <mediumAdvertisement>
              <include baja:node="../../../oemBanner" />
            </mediumAdvertisement>

            <globalButtons>
              <include baja:node="../../../globalButtonBar" />
            </globalButtons>

            <tabs>
              <include baja:node="../../../globalTabs" />
            </tabs>

   <location>
      <include baja:node="/breadCrumbs"/>
   </location>


            <pageHeader>
              <include baja:node="../header"/>
            </pageHeader>

            <copyright>
              <include baja:node="../../../copyright"/>
            </copyright>

            <contents>  <!-- pageLayout contents... -->
              <stackLayout>
                <contents>
                  <!-- ................... Page Timestamp ................... -->

                  <header data:text="emdHeader@emdGeneral">
                    <contents>
                        <tableLayout width="100%">
                          <contents>
                            <rowLayout>
                              <contents>
                                <cellFormat>
                                  <contents>
                                    <rowLayout hAlign="right">
                                      <contents>
                                        <cellFormat>
                                          <contents>
                                            <flowLayout>
                                              <contents>
                                                <styledText styleClass="OraTipText" data:text="PAGE_REFRESHED_TIME@sdkBundle"/>
                                                <spacer width="5"/>
                                                <styledText styleClass="OraTipLabel" data:text="timestamp@timeData"/>
                                              </contents>
                                            </flowLayout>
                                          </contents>
                                        </cellFormat>

                                        <spacer width="8"/>
                                        <image data:source="refreshIcon@refreshButtonData"
                                               data:destination="refreshUrl@refreshButtonData"
                                               data:shortDesc="PAGE_REFRESHED_TIME@sdkBundle"/>
                                      </contents>
                                    </rowLayout>
                                  </contents>
                                </cellFormat>
                              </contents>
                            </rowLayout>
                          </contents>
                        </tableLayout>

                      <switcher data:childName="page@emdGeneral">
                        <case name="errPage">
                          <messageBox
                            data:message="errMsg@emdGeneral"
                            messageType="error">
                          </messageBox>
                        </case>
                        <case name="okPage">
                          <stackLayout>
                            <contents>
                              <tableLayout width="100%">
                                <contents>
                                  <include baja:node="metricErrors"/>
                                </contents>
                              </tableLayout>
                            </contents>
                          </stackLayout>
                        </case>
                      </switcher>
                    </contents>
                  </header>
                </contents>
              </stackLayout>
            </contents>
          </pageLayout>
        </contents>
       </form>
      </contents>
      <provider>
        <data name="timeData">
          <method class="oracle.sysman.eml.mntr.util.CommonDataObject"
                method="getCurrentTime"/>
        </data>
        <data name="adminResourceBundle">
          <bundle class="oracle.sysman.eml.admin.rep.AdminResourceBundle"/>
        </data>
        <data name="emdGeneral">
          <method class="oracle.sysman.eml.admin.rep.emdConfig.EmdConfigTargetsData"
                method="getMetricErrorData"/>
        </data>
        <data name="tableData">
          <method class="oracle.sysman.eml.admin.rep.emdConfig.EmdConfigTargetsData"
                method="getMetricErrors"/>
        </data>
        <data name="refreshButtonData">
          <method class="oracle.sysman.eml.admin.rep.emdConfig.EmdConfigTargetsData"
                method="getRefreshButtonData"/>
        </data>
        <data name="sdkBundle">
          <bundle class="oracle.sysman.emSDK.eml.SDKUIMsg"/>
        </data>
        <data name="tableData">
          <method class="oracle.sysman.eml.admin.rep.emdConfig.EmdConfigTargetsData"
              method="getMetricErrors"/>
        </data>
      </provider>
    </dataScope>
  </baja:content>

  <baja:handlers>
    <event name="null">
      <method class="oracle.sysman.eml.admin.rep.emdConfig.EmdConfigEvents"
              method="doNull"/>
    </event>
    <event name="refresh">
      <method class="oracle.sysman.eml.admin.rep.emdConfig.EmdConfigEvents"
              method="doRefresh"/>
    </event>
    <event name="goto">
      <method class="oracle.sysman.eml.admin.rep.emdConfig.EmdConfigEvents"
              method="gotoTable"/>
    </event>
    <event name="ok">
      <method class="oracle.sysman.eml.admin.rep.emdConfig.TargetConfigEvents"
              method="doCancel"/>
    </event>
    <event name="sort">
      <method class="oracle.sysman.eml.admin.rep.emdConfig.EmdConfigTargetsData"
              method="doSort"/>
    </event>

  </baja:handlers>

</page>


