<page xmlns="http://bali.us.oracle.com/cabo/baja" xmlns:html="http://www.w3.org/TR/REC-html40" xmlns:marlin="http://bali.us.oracle.com/cabo/marlin" xmlns:data="http://bali.us.oracle.com/cabo/marlin" xmlns:baja="http://bali.us.oracle.com/cabo/baja">
  <head>
  </head>
  <content>
    <dataScope xmlns="http://bali.us.oracle.com/cabo/marlin">
      <contents>
        <html:title>
          <text>
            <boundAttribute name="text">
              <concat>
                <dataObject select="comm_win_title" source="win_title"/>
                <dataObject select="CfgPageHeader" source="text"/>
              </concat>
            </boundAttribute>
          </text>
        </html:title>
	<html:noScript> "JavaScript is not supported by your browser. Oracle requires JavaScript support in order to completely render this page." </html:noScript>
        <form name="AddSwitchForm" 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="../../../globalHeader"/>
              </pageHeader>
              <copyright>
                <include baja:node="../../../copyright"/>
              </copyright>
              <privacy/>
              <!-- Page Buttons Section -->
              <contentFooter>
                <switcher data:childName="hasWarning@error">
                  <case name="true">
                    <flowLayout hAlign="right">
                      <contents>
                        <button data:text="Back@text" destination="adaptSwitchParameters"/>
                        <submitButton data:text="Cancel@text" baja:event="cancel"/>
                        <submitButton data:text="Add@text" baja:event="addWithWarning"/>
                      </contents>
                    </flowLayout>
                  </case>
                  <case name="false">
                    <flowLayout hAlign="right">
                      <contents>
                        <!-- button data:text="OK@text" destination="../init/slbMain" / -->
                        <switcher data:childName="checkError@error">
                          <case name="addSwitchFailed">
                            <flowLayout hAlign="right">
                              <contents>
                                <button data:text="Back@text" destination="adaptSwitchParameters"/>
                                <submitButton data:text="Cancel@text" baja:event="cancel"/>
                              </contents>
                            </flowLayout>
                          </case>
                          <case name="none">
                            <submitButton data:text="OK@text" baja:event="doOK"/>
                          </case>
                        </switcher>
                      </contents>
                    </flowLayout>
                  </case>
                </switcher>
              </contentFooter>
              <!-- Page Buttons Section -->
              <contents>
                <switcher data:childName="checkError@error">
                  <case name="addSwitchFailed">
                    <header data:text="CfgPageHeader@text">
                      <contents>
                        <stackLayout>
                          <contents>
                            <spacer height="20"/>
                            <messageBox messageType="error">
                              <boundAttribute name="message">
                                <concat>
                                  <dataObject select="AdaptConfiguredSwitchFailed" source="text"/>:<dataObject select="AddSwitchErrorText" source="error"/></concat>
                              </boundAttribute>
                            </messageBox>
                          </contents>
                        </stackLayout>
                      </contents>
                    </header>
                  </case>
                  <case name="SnmpOrWebAccessFailed">
                    <header data:text="CfgPageHeader@text">
                      <contents>
                        <stackLayout>
                          <contents>
                            <spacer height="20"/>
                            <messageBox data:message="warningMessage@error" messageType="warning"/>
                          </contents>
                        </stackLayout>
                      </contents>
                    </header>
                  </case>
                  <case name="none">
                    <header data:text="CfgPageHeader@text">
                      <contents>
                        <stackLayout>
                          <contents>
                            <spacer height="20"/>
                            <messageBox data:message="AdaptConfiguredSwitchSuccess@text" messageType="confirmation"/>
                          </contents>
                        </stackLayout>
                      </contents>
                    </header>
                  </case>
                </switcher>
              </contents>
            </pageLayout>
          </contents>
        </form>
      </contents>
      <provider>
        <data name="text">
          <bundle class="oracle.sysman.eml.rsc.target.slb.SLBBundle"/>
        </data>
        <data name="error">
          <method class="oracle.sysman.eml.target.slb.initcfg.AddConfiguredSwitch" method="getErrors"/>
        </data>
        <data name="input">
          <method class="oracle.sysman.eml.target.slb.initcfg.AddConfiguredSwitch" method="getInputValues"/>
        </data>
        <data name="win_title">
          <method class="oracle.sysman.eml.target.slb.common.SLB" method="getCommonWinTitle"/>
        </data>
      </provider>
    </dataScope>
  </content>
  <handlers>
    <event name="cancel">
      <method class="oracle.sysman.eml.target.slb.initcfg.AddConfiguredSwitch" method="doCancel"/>
    </event>
    <event name="add">
      <method class="oracle.sysman.eml.target.slb.initcfg.AddConfiguredSwitch" method="doAdd"/>
    </event>
    <event name="addWithWarning">
      <method class="oracle.sysman.eml.target.slb.initcfg.AddConfiguredSwitch" method="doAddWithWarning"/>
    </event>
    <event name="doOK">
      <method class="oracle.sysman.eml.target.slb.initcfg.AddConfiguredSwitch" method="doCancel"/>
    </event>
  </handlers>
</page>
