<?xml version='1.0' encoding='UTF-8'?>
<!DOCTYPE eventDef SYSTEM "eventDef.dtd">
<eventDef>
   <component id="searchButton">
      <event id="onclick" type="remote" async="true" remoteUrl="../hotelSearch"
             before="showSendXML" after="showReceiveXML">
         <param rootNode="hotelCondition">
            <source obj="dayText" node="day"></source>
            <source obj="placeGinzaCheckbox" node="placeGinza"></source>
            <source obj="placeShinjukuCheckbox" node="placeShinjuku"></source>
            <source obj="placeShibuyaCheckbox" node="placeShibuya"></source>
            <source obj="roomCombo" node="room"></source>
            <source obj="chargeMaxText" node="chargeMax"></source>
         </param>
         <result rootNode="hotelList">
            <target out="hotelDetailGrid" in="rows" inkey="row">
               <bind tokey="0" node="id"></bind>
               <bind tokey="1" node="name"></bind>
               <bind tokey="2" node="place"></bind>
               <bind tokey="3" node="room"></bind>
               <bind tokey="4" node="charge"></bind>
            </target>
         </result>
      </event>
   </component>
   <component id="hotelDetailGrid">
      <event id="onclick" type="remote" async="true" remoteUrl="../hotelSearch">
         <param rootNode="hotelID">
            <source obj="hotelDetailGrid" node="id" fromkey="0"></source>
         </param>
         <result rootNode="hotelDetail">
            <target out="hotelDetailText" in="detail"></target>
         </result>
      </event>
   </component>
</eventDef>