<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="cacheListForm">
			<contents>
			
			<dataScope>
			<contents>

			<script>
			<contents>
				function selectTableRow()
				{
					var proxy = new TableProxy('cacheListTable');
					var row = proxy.getSelectedRow();
					if (row >= 0)
					{
						top.retCache = proxy.getFormElement('fCache', 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 text="Select the URL"/>
						</html:font>
					</html:p>
				</contents>
			</rowLayout>

			<table proxied="true"
				   uix:tableData="urlList@tableData"
				   name="cacheListTable">
				<tableSelection>
					<singleSelection selectedIndex="0">
					  <contents>
						<button text="Select" destination="javascript:selectTableRow()"/>
						<button text="Cancel" destination="javascript:cancelTableRow()"/>
					  </contents>
					</singleSelection>
				</tableSelection>
				<columnHeaderData>
					<col text="URL"/>
				</columnHeaderData>
				<columnHeaderStamp>
					<text uix:text="text"/>
				</columnHeaderStamp>
				<contents>
					<styledText uix:text="url"/>
					<formValue name="fCache" uix:value="url"/>
				</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.CacheData" method="getCache"/>
				</data>
				
				<data name="demoTableData">
					<inline>
						<row cache="http://www.yahoo.com" />
                        <row cache="http://www.google.com" />
                        <row cache="http://www.oracle.com" />
                        <row cache="http://www.test.com" />
                        <row cache="http://www.apurv.com" />
                        <row cache="http://www.macks.com" />
                        <row cache="http://www.pranil.com" />
					</inline>
				</data>
		
			</provider>
			</dataScope>
			</contents>
		</form>
	</ctrl:content>
</ctrl:page>
