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

  <baja:content xmlns="http://bali.us.oracle.com/cabo/marlin">
  <form name="hostLookupTableConfigAdd" method="POST">
  <contents>
    <dataScope>

      <contents>
        <html:title>
         <text data:text="title@hostLookupTableInfo"/>
        </html:title>

        <html:noScript>"JavaScript is not supported by your browser. Oracle requires JavaScript support in order to completely render this page."</html:noScript>

        <pageLayout xmlns="http://bali.us.oracle.com/cabo/marlin">
          <mediumAdvertisement>
            <include baja:node="../../../oemBanner" />
          </mediumAdvertisement>
          <marlin:globalButtons>
            <include baja:node="../../../globalButtonBar" />
          </marlin:globalButtons>
          <marlin:tabs>
            <include baja:node="../../../globalTabs" />
          </marlin:tabs>
          <marlin:pageHeader>
            <include baja:node="../../../globalHeader" />
          </marlin:pageHeader>

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

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

       <pageButtons>
        <pageButtonBar>
    <contents>
     <tableLayout>
      <contents>
       <rowLayout>
        <contents>
         <submitButton data:text="CANCEL@commonResourceBundle"
        name="event"
        value="cancel"/>


         <submitButton data:text="OK@commonResourceBundle"
        name="event"
        value="okUpdate"/>
        </contents>
       </rowLayout>
      </contents>
     </tableLayout>
    </contents>
         </pageButtonBar>
        </pageButtons>
          <contents>
            <switcher childName="okNode" data:childName="node@hostLookupTableInfo">
             <case name="okNode">
              <stackLayout>
               <contents>


            <spacer height="10"/>
            <header data:text="EDIT_HOST_CONFIGURATION@hostResourceBundle">

              <contents>               
               <spacer height="10"/>
                            <tableLayout cellSpacing="8">
                             <contents>

                              <rowLayout>
                               <contents>
                                      <spacer width="8"/>
                                  <cellFormat hAlign="right">
                                    <contents>
                                          <styledText data:text="IP_ADDRESS@hostResourceBundle" styleClass="OraPromptText"/>
                                    </contents>
                                  </cellFormat>
                                  <cellFormat hAlign="left">
                                    <contents>
                                    <spacer width="8"/>
                                         <styledText data:text="ipAddress@editRowData" styleClass="OraInstructionTextStrong"/>
                                     <spacer height="8"/>
                                   </contents>
                                  </cellFormat>
                                 </contents>
                               </rowLayout>

                              <rowLayout>
                               <contents>
                                      <spacer width="8"/>
                                  <cellFormat hAlign="right">
                                    <contents>
                                          <styledText data:text="HOST_NAME@hostResourceBundle" styleClass="OraPromptText"/>
                                    </contents>
                                  </cellFormat>
                                  <cellFormat hAlign="left">
                                    <contents>
                                    <spacer width="5"/>
                                         <textInput data:text="hostName@editRowData" maximumLength="64" name="hostName"/>
                                     <spacer height="8"/>
                                   </contents>
                                  </cellFormat>
                                 </contents>
                               </rowLayout>


                              <rowLayout>
                               <contents>
                                      <spacer width="8"/>
                                  <cellFormat hAlign="right">
                                    <contents>
                                          <styledText data:text="HOST_ALIASES@hostResourceBundle" styleClass="OraPromptText"/>
                                    </contents>
                                  </cellFormat>
                                  <cellFormat hAlign="left">
                                    <contents>
                                    <spacer width="5"/>
                                         <textInput data:text="hostAlias@editRowData" maximumLength="64" name="hostAlias"/>
                                     <spacer height="8"/>
                                   </contents>
                                  </cellFormat>
                                 </contents>
                               </rowLayout>

                              <rowLayout>
                               <contents>
                                      <spacer width="8"/>
                                  <cellFormat hAlign="right">
                                    <contents>
                                    </contents>
                                  </cellFormat>
                                  <cellFormat hAlign="left">
                                    <contents>
                                    <spacer width="8"/>
                                         <styledText data:text="ADD_HOST_CONFIGURATION_TIP@hostResourceBundle" styleClass="OraInlineInfoText"/>
                                     <spacer height="8"/>
                                   </contents>
                                  </cellFormat>
                                 </contents>
                               </rowLayout>

                              </contents>
                             </tableLayout>

              </contents>
            </header>
              </contents>
             </stackLayout>
            </case>
            <case name="errNode">
             <messageBox data:message="errMsg@hostLookupTableInfo"
                         messageType="error"
                         longDescURL="unimpl"
                         data:text="ERR_OCCUR@mntrResourceBundle">
             </messageBox>
            </case>
           </switcher>

           <spacer height="15"/>
          </contents>

        </pageLayout>
      </contents>

      <provider>

        <data name="hostLookupTableInfo">
          <method class="oracle.sysman.eml.host.admin.HostLookupPageHandler" method="getHostLookupTable"/>
        </data>

        <data name="hostResourceBundle">
            <bundle class="oracle.sysman.eml.host.HostResourceBundle"/>
        </data>


        <data name="mntrResourceBundle">
            <bundle class="oracle.sysman.resources.MntrResourceBundle"/>
        </data>

        <data name="commonResourceBundle">
            <bundle class="oracle.sysman.resources.CommonResourceBundle"/>
        </data>

        <data name="editRowData">
            <method class="oracle.sysman.eml.host.admin.HostLookupPageHandler"
                    method="getCachedRowData"/>
         </data>


      </provider>

    </dataScope>
    </contents>
   </form>
  </baja:content>

 <handlers>

    <event name="cancel">
      <method class="oracle.sysman.eml.host.admin.HostLookupPageHandler"
              method="updateLookupTable"/>
    </event>

    <event name="okUpdate">
      <method class="oracle.sysman.eml.host.admin.HostLookupPageHandler"
              method="updateLookupTable"/>
    </event>

  </handlers>

</page>
