<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">
    <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>         

            
          <contents>
            <switcher childName="okNode" data:childName="node@hostLookupTableInfo">
             <case name="okNode">
              <stackLayout>
               <contents>
                  <messageBox messageType="info"
                           data:messageType="inlineMessageType@hostLookupTableInfo"
                           data:message="inlineConfirm@hostLookupTableInfo"
                           rendered="false"
                           data:rendered="showConfirm@hostLookupTableInfo" /> 

            <spacer height="10"/>
            <header data:text="HOST_LOOKUP_TABLE@hostResourceBundle">
            
           
              <contents>
                <form name="hostLookupTableConfig" method="POST">                              
                 <contents>
                 
              <tableLayout width="100%">
                 <contents>
                  <rowLayout>
                   <contents>
                    <cellFormat>
                     <contents>
                      <rowLayout hAlign="left">
                       <contents>
                          <styledText data:text="HOST_LOOKUP_TABLE_INSTRUCTION@hostResourceBundle" styleClass="OraPromptText"/>
                       </contents>
                      </rowLayout>
                     </contents>
                    </cellFormat> 
                    <cellFormat>
                     <contents>
                      <rowLayout hAlign="right">
                       <contents>
                         <submitButton data:text="DONE@hostResourceBundle"
                                 name="event" value="done"/>
                       </contents>
                      </rowLayout>
                     </contents>
                    </cellFormat>                    
                   </contents>
                  </rowLayout>
                  <rowLayout>
                   <contents>
                    <cellFormat>
                     <contents>
                     <spacer height="10"/>
                      <rowLayout hAlign="right">
                       <contents>
                          <styledText data:text="CREDENTIALS@hostResourceBundle" styleClass="OraPromptText"/>
                       </contents>
                       <contents>
                        <spacer width="10"/>
                          <styledText data:text="Credentials@hostLookupTableInfo" styleClass="OraInstructionTextStrong"/>
                       </contents>
                      </rowLayout>
                     </contents>
                    </cellFormat>

                    <cellFormat>
                     <contents>
                     <spacer height="10"/>
                      <rowLayout hAlign="right">
                       <contents>
                         <submitButton data:text="CHANGE@hostResourceBundle"
                                 name="event" value="switchUser"/>
                       </contents>
                      </rowLayout>
                     </contents>
                    </cellFormat>
                   </contents>
                  </rowLayout>

                 </contents>
                </tableLayout>     
                <spacer height="10"/>
            </contents>        
            
            <contents>
                <spacer height="10"/>
                                <table name="hostLookups" 
                                        partialRenderMode="self" 
                                        data:tableData="row@hostLookupTableInfo" 
                                        data:columnHeaderData="column@hostLookupTableInfo" 
                                        data:columnFormats="colformat@columnFormatData"
                                        data:value="value@hostLookupTableInfo" 
                                        data:minValue="minValue@hostLookupTableInfo" 
                                        data:blockSize="blockSize@hostLookupTableInfo" 
                                        data:maxValue="maxValue@hostLookupTableInfo" 
                                        formSubmitted="true" 
                                        summary="hostLookups" 
                                        id="hostLookups" 
                                        showAll="yes" 
                                        width="70%" 
                                        data:alternateText="Host Lookup. Configuration">
                                  <tableFormat tableBanding="rowBanding"/>
                                  <columnHeaderStamp>
                                    <sortableHeader data:text="text" data:sortable="sortable"/>
                                  </columnHeaderStamp>
                                  <tableActions>
                                        <submitButton data:text="ADD@commonResourceBundle"  
                                                      name="event" 
                                                      value="doAdd"/>

                                   </tableActions>
                                  <tableSelection>
                                    <singleSelection selectedIndex="0" text="" >
                                      <contents>
                                        <submitButton data:text="EDIT@commonResourceBundle"
                                                      name="event" 
                                                      value="doEdit"/>
                                        <spacer width="2"/>
                                        <submitButton data:text="DELETE@commonResourceBundle"  
                                                      name="event" 
                                                      value="doDelete"/>
                                        <spacer width="2"/>
                                        
                                      </contents>
                                    </singleSelection>                                    
                                  </tableSelection>                                
                                   <contents>                                      
                                    <styledText data:text="IPAddress" data:shortDesc="IP Address" />                        
                                    <styledText data:text="HostName" data:shortDesc="Host Name" />
                                    <styledText data:text="HostAlias" data:shortDesc="Host Alias" />
                                   </contents>
                                </table>
                <spacer height="10"/>
                <spacer width="8"/>
               
                </contents>
                </form>
              </contents>
            </header>              
              </contents>
             </stackLayout>
            </case>
            <case name="errNode">
              <stackLayout>
               <contents>
                <form name="hostLookupTableConfig" method="POST">                              
                 <contents>
              <tableLayout width="100%">
                 <contents>                 
                  <rowLayout>
                   <contents>
                    
                    <cellFormat>
                     <contents>
                      <rowLayout hAlign="right">
                       <contents>
                          <styledText data:text="CREDENTIALS@hostResourceBundle" styleClass="OraPromptText"/>
                       </contents>
                       <contents>
                         <spacer width="10"/>
                         <submitButton data:text="CHANGE@hostResourceBundle" name="event" value="switchUser"/>
                       </contents>
                      </rowLayout>
                     </contents>
                    </cellFormat>
                    
                   </contents>
                  </rowLayout>

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

           <spacer height="15"/>




          </contents>

        </pageLayout>
      </contents>

      <provider>
        <data name="columnFormatData">
          <inline>
           <!--<colformat columnDataFormat="numberFormat" width="10%"/>  ?? -->
           <colformat/>
           <colformat/>
           <colformat/>
          </inline>
        </data>

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

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

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

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

      </provider>

    </dataScope>
  </baja:content>

 <handlers>
    <event name="sort">
      <method class="oracle.sysman.eml.host.admin.HostLookupPageHandler"
              method="doSort"/>
    </event>
    <event name="goto">
      <method class="oracle.sysman.eml.host.admin.HostLookupPageHandler"
              method="doGoto"/>
    </event>

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

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

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

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

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

    <event name="*">
          <method class="oracle.sysman.eml.host.admin.HostLookupPageHandler" method="doLoad"/>
    </event>
  </handlers>

</page>
