<page xmlns="http://xmlns.oracle.com/uix/controller"
      xmlns:ui="http://xmlns.oracle.com/uix/ui"
      xmlns:baja="http://bali.us.oracle.com/cabo/baja"
      xmlns:data="http://xmlns.oracle.com/uix/ui"
      xmlns:html="http://www.w3.org/TR/REC-html40"
      xmlns:ctrl="http://xmlns.oracle.com/uix/controller"
      xmlns:uix="http://bali.us.oracle.com/cabo/marlin">
  <!-- Browser Title Bar -->
  <baja:head xmlns="http://www.w3.org/TR/REC-html40"/>
  <!-- Begin Page Content -->
  <baja:content xmlns="http://bali.us.oracle.com/cabo/marlin" xmlns:marlin="http://bali.us.oracle.com/cabo/marlin">
   <body onLoad="loadIt();">
    <contents>
     <dataScope>
       <contents>
        <script>
         <contents>
          function loadIt()
          {
           document.editserviceform.connectionLimit.focus();
          }
         </contents>
        </script>
        <html:title>
          <text>
            <boundAttribute name="text">
              <concat>
                <dataObject select="comm_win_title" source="win_title"/>
                <dataObject select="modifySiteProperties" source="text"/>
              </concat>
            </boundAttribute>
          </text>
        </html:title>
        <form name="editserviceform" data:rendered="hasMgmtPriv@user_target_priv">
          <contents>
            <pageLayout xmlns:data="http://bali.us.oracle.com/cabo/marlin">
              <mediumAdvertisement>
                <include baja:node="../../../oemBanner"/>
              </mediumAdvertisement>
              <globalButtons>
                <include baja:node="../../../globalButtonBar"/>
              </globalButtons>
              <tabs>
                <include baja:node="../../../globalTabs"/>
              </tabs>
              <pageHeader>
                <include baja:node="../../../globalHeader"/>
              </pageHeader>
              <copyright>
                <include baja:node="../../../copyright"/>
              </copyright>
              <privacy/>
              <location>
                <include baja:node="../../../breadCrumbs"/>
                <!--
                <breadCrumbs>
                  <contents>
                    <link data:text="target@baja:page" data:destination="slbdest@link"/>
                    <link data:text="service_name@baja:page"/>
                  </contents>
                </breadCrumbs>
-->
              </location>
              <contentFooter>
                <pageButtonBar>
                  <contents>
                    <button data:text="Cancel@text" data:shortDesc="Cancel@text" baja:event="cancel"/>
                  </contents>
                  <contents>
                    <submitButton data:text="OK@text" data:shortDesc="OK@text" baja:event="doSubmit"/>
                  </contents>
                </pageButtonBar>
              </contentFooter>
              <contents>
                <spacer height="5"/>
                <!-- header data:text="service_name@baja:page" -->
                <header data:text="modifySiteProperties@text">
                  <!--
                  <boundAttribute name="text">
                    <concat>
                      <dataObject select="site_ipaddress" source="baja:page"/>:<dataObject select="service_port" source="baja:page"/></concat>
                  </boundAttribute>
-->
                  <contents>
                    <rowLayout hAlign="right">
                      <contents>
                        <pageButtonBar>
                          <contents>
                            <button data:text="Cancel@text" data:shortDesc="Cancel@text" baja:event="cancel"/>
                            <submitButton data:text="OK@text" data:shortDesc="OK@text" baja:event="doSubmit"/>
                          </contents>
                        </pageButtonBar>
                      </contents>
                    </rowLayout>
                    <!-- general properties -->
                    <!--
                    <header>
                      <contents>

-->
                    <labeledFieldLayout width="300">
                      <contents>
                        <switcher data:childName="slb_type@type">
                          <case name="slb_bigip">
                            <messageTextInput data:prompt="ConnectionLimit@text" columns="10" maximumLength="10" data:tip="ConnectionLimitTip@text" name="connectionLimit" data:text="connectionLimit@input">
                              <boundMessage select="connectionLimitError"/>
                            </messageTextInput>
                          </case>
                          <case name="slb_nortel">
                            <messageTextInput data:prompt="ListeningPort@text" columns="5" maximumLength="5" name="service_port" data:text="service_port@input">
                              <boundMessage select="servicePortError"/>
                            </messageTextInput>
                          </case>
                        </switcher>
                      </contents>
                    </labeledFieldLayout>
                  </contents>
                  <!--
                    </header>
                  </contents>
-->
                </header>
                <!-- end of properties -->
              </contents>
            </pageLayout>
          </contents>
        </form>
      </contents>
      <provider>
        <data name="SLBBundle">
          <bundle class="oracle.sysman.eml.rsc.target.slb.SLBBundle"/>
        </data>
        <data name="text">
          <bundle class="oracle.sysman.eml.rsc.target.slb.SLBBundle"/>
        </data>
        <data name="service_properties">
          <method class="oracle.sysman.eml.target.slb.mgmt.ModifyServicePropertyPage" method="getServiceProperties"/>
        </data>
        <data name="input">
          <method class="oracle.sysman.eml.target.slb.mgmt.ModifyServicePropertyPage" method="getInputValues"/>
        </data>
        <data name="type">
          <method class="oracle.sysman.eml.target.slb.common.SLB" method="getUixSlbType"/>
        </data>
        <data name="user_target_priv">
          <method class="oracle.sysman.eml.target.slb.mgmt.RoleBasedMgmt" method="getUserTargetPriv"/>
        </data>
        <data name="win_title">
          <method class="oracle.sysman.eml.target.slb.common.SLB" method="getCommonWinTitle"/>
        </data>
      </provider>
    </dataScope>
    </contents>
   </body>
  </baja:content>

  <handlers>
    <event name="doSubmit">
      <method class="oracle.sysman.eml.target.slb.mgmt.ModifyServicePropertyPage" method="submitModify"/>
    </event>
    <event name="cancel">
      <method class="oracle.sysman.eml.target.slb.mgmt.ModifyServicePropertyPage" method="doCancel"/>
    </event>
    <event name="null">
      <method class="oracle.sysman.eml.target.slb.common.SLBOnlineHelp" method="setHelpPage"/>
    </event>
  </handlers>
</page>

