<ctrl:page	xmlns="http://xmlns.oracle.com/uix/ui"
			xmlns:ctrl="http://xmlns.oracle.com/uix/controller"
			xmlns:uix="http://xmlns.oracle.com/uix/ui"
			xmlns:data="http://xmlns.oracle.com/uix/ui"
			xmlns:html="http://www.w3.org/TR/REC-html40">
	<ctrl:content>
		<form name="hostListForm">
			<contents>
			
			<dataScope>
			<contents>

			<script>
			<contents>
				function selectTableRow()
				{
					var proxy = new TableProxy('hostListTable');
					var row = proxy.getSelectedRow();
					if (row >= 0)
					{
						top.retHost = proxy.getFormElement('fHost', row).value;
						top.retPort = proxy.getFormElement('fPort', row).value;
						top.retDont = proxy.getFormElement('fDont', row).value;
						top.retRelm = proxy.getFormElement('fRelm', row).value;
						top.retUser = proxy.getFormElement('fUser', row).value;
						top.retPass = proxy.getFormElement('fPass', row).value;
					}
					cancelTableRow();
				}
				function cancelTableRow()
				{
					top.close();
				}
			</contents>
			</script>

			<stackLayout>
			<contents>

			<rowLayout>
				<contents>
					<html:br>
					</html:br>
					<html:p>
						<html:font face="Arial,Helvetica,Geneva,sans-serif" size="2" color="#000000">
							<rawText uix:text="MSG_CHOOSE_PROXY@ResourceBundle"/>
						</html:font>
					</html:p>
				</contents>
			</rowLayout>

			<table proxied="true"
				   uix:tableData="hostList@tableData"
				   name="hostListTable">
				<tableSelection>
					<singleSelection selectedIndex="0">
					  <contents>
						<button text="Select" destination="javascript:selectTableRow()"/>
						<button text="Cancel" destination="javascript:cancelTableRow()"/>
					  </contents>
					</singleSelection>
				</tableSelection>
				<columnHeaderData>
					<col data:text="SERVER_HOST@ResourceBundle"/>
					<col data:text="SERVER_PORT@ResourceBundle"/>
					<col data:text="SERVER_DONT@ResourceBundle"/>
					<col data:text="SERVER_RELM@ResourceBundle"/>
					<col data:text="SERVER_USER@ResourceBundle"/>
					<col data:text="SERVER_PASS@ResourceBundle"/>
				</columnHeaderData>
				<columnHeaderStamp>
					<text uix:text="text"/>
				</columnHeaderStamp>
				<contents>
					<styledText uix:text="host"/>
					<styledText uix:text="port"/>
					<styledText uix:text="dont"/>
					<styledText uix:text="relm"/>
					<styledText uix:text="user"/>
					<styledText text="xxxx"/>
					<formValue name="fHost" uix:value="host"/>
					<formValue name="fPort" uix:value="port"/>
					<formValue name="fDont" uix:value="dont"/>
					<formValue name="fRelm" uix:value="relm"/>
					<formValue name="fUser" uix:value="user"/>
					<formValue name="fPass" uix:value="pass"/>
				</contents>
			</table>

			</contents>
			</stackLayout>

			</contents>
			<provider>

				<data name="ResourceBundle">
                                        <bundle class = "oracle.sysman.eml.ecm.patch.util.PatchResourceBundle"/>
				</data>

				<data name="tableData">
					<method class="oracle.sysman.eml.admin.rep.proxy.ProxyData" method="getProxyDataByProtocol"/>
				</data>
				
				<data name="demoTableData">
					<inline>
						<row host="host1.example.com" port="81" dont="*.example.com,localhost,127.0.0.1" user="testuser" pass="rdx007ri" relm="ST-IT" />
						<row host="host2.example.com" port="82" dont="*.example.com,localhost,127.0.0.1" user="testuser" pass="rdx007ri" relm="ST-IT" />
						<row host="host3.example.com" port="83" dont="*.example.com,localhost,127.0.0.1" user="testuser" pass="rdx007ri" relm="ST-IT" />
						<row host="host4.example.com" port="84" dont="*.example.com,localhost,127.0.0.1" user="testuser" pass="rdx007ri" relm="ST-IT" />
					</inline>
				</data>
		
			</provider>
			</dataScope>
			</contents>
		</form>
	</ctrl:content>
</ctrl:page>
