<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="okAdd"/> 
		    </contents>
		   </rowLayout>
		  </contents>
		 </tableLayout>
		</contents>
	       </pageButtonBar>
	      </pageButtons>              
          <contents>
            <switcher childName="okNode" data:childName="node@hostInfo">
             <case name="okNode">
              <stackLayout>
               <contents>


            <spacer height="10"/>
            <header data:text="ADD_HOST_CONFIGURATION@hostResourceBundle">           
           
              <contents>
                          
               <styledText data:text="ADD_HOST_CONFIGURATION_INSTRUCTION@hostResourceBundle" styleClass="OraPromptText"/>   
               <spacer height="10"/>
                            <tableLayout cellSpacing="3">
                             <contents>
                             
                              <rowLayout>
                               <contents>
                                      <spacer width="9"/>
                                  <cellFormat hAlign="left">
                                    <contents>
                         <spacer height="8"/>          
                        <messageTextInput name="ipAddress"
			 columns="30" 
			 maximumLength="64"
			 required="uiOnly"
			 data:prompt="IP_ADDRESS@hostResourceBundle"
			 styleClass="OraFieldText"			 
			 shortDesc="IP address"/>     
			 <spacer height="8"/>
			 
                                   </contents>                                   
                                  </cellFormat>                                  
                                 </contents>
                               </rowLayout>       
                               
                              <rowLayout>
                               <contents>
                                  <spacer width="8"/>
                                  <cellFormat hAlign="left">
                                    <contents>
                                    
                        <messageTextInput name="hostName"
			 columns="30" 
			 maximumLength="64"
			 required="uiOnly"
			 data:prompt="HOST_NAME@hostResourceBundle"
			 styleClass="OraFieldText"			 
			 shortDesc="Host name"/>     
			 <spacer height="8"/>
			 
                                   </contents>
                                  </cellFormat>
                                 </contents>
                               </rowLayout>    
                               
                              <rowLayout>
                               <contents>
                                  <spacer width="7"/>
                                  <cellFormat hAlign="right">
                                    <contents>
                               
                        <messageTextInput name="hostAlias"
			 columns="30" 
			 maximumLength="64"                         
			 data:prompt="HOST_ALIASES@hostResourceBundle"
			 styleClass="OraFieldText"			 
			 shortDesc="Host aliases"/>   
			 <spacer height="8"/>
			 
			   <styledText data:text="ADD_HOST_CONFIGURATION_TIP@hostResourceBundle" styleClass="OraInlineInfoText"/>

                                   </contents>
                                  </cellFormat>
                                 </contents>
                               </rowLayout>                                   
                               
                              </contents>
                             </tableLayout>                               
              
              </contents>
            </header>              
              </contents>
             </stackLayout>
            </case>
            <case name="errNode">
             <messageBox data:message="errMsg@hostInfo"
                         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>
      </provider>

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

 <handlers>

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

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

  </handlers>

</page>
