<!--
//   Name:  TargetChooserOverrideExampleTemplate.jsp
//
//   Copyright (c) 1997-2004 Novell, Inc.  All Rights Reserved.
//
//   THIS WORK IS SUBJECT TO U.S. AND INTERNATIONAL COPYRIGHT LAWS AND TREATIES.
//   USE AND REDISTRIBUTION OF THIS WORK IS SUBJECT TO THE LICENSE AGREEMENT
//   ACCOMPANYING THE SOFTWARE DEVELOPMENT KIT (SDK) THAT CONTAINS THIS WORK.
//   PURSUANT TO THE SDK LICENSE AGREEMENT, NOVELL HEREBY GRANTS TO DEVELOPER A
//   ROYALTY-FREE, NON-EXCLUSIVE LICENSE TO INCLUDE NOVELL'S SAMPLE CODE IN ITS
//   PRODUCT. NOVELL GRANTS DEVELOPER WORLDWIDE DISTRIBUTION RIGHTS TO MARKET,
//   DISTRIBUTE, OR SELL NOVELL'S SAMPLE CODE AS A COMPONENT OF DEVELOPER'S
//   PRODUCTS. NOVELL SHALL HAVE NO OBLIGATIONS TO DEVELOPER OR DEVELOPER'S
//   CUSTOMERS WITH RESPECT TO THIS CODE.
-->

<%@ page import="com.novell.nps.gadgetManager.BaseGadgetInstance"%>
<%@  page pageEncoding="utf-8" contentType="text/html;charset=utf-8" 
		import="com.novell.emframe.dev.eMFrameUtils" %>


<%@ taglib uri="/WEB-INF/iman.tld" prefix="iman" %>
<%@ taglib uri="/WEB-INF/c.tld" prefix="c" %>
<%@ taglib uri="/WEB-INF/x.tld" prefix="x" %>


<iman:stringtable bundle="DevResources"/>
<iman:stringtable bundle="FwResources"/>
<iman:stringtable bundle="com.company.plugins.iManagerCodeExamplesResources"/>
   

<HTML>
<HEAD>
   <TITLE><iman:string key="ProductName"/></TITLE>
   <LINK rel="stylesheet" href="<c:out value="${ContextPath}" />/portal/modules/dev/css/hf_style.css">
   <iman:eMFrameScripts/>
</HEAD>

<BODY>
   <iman:taskHeader titleKey="TargetChooserOverrideExample.TaskDisplayName"/>
   <iman:string key="TargetChooserOverrideExample.Description"/>
   <iman:string key="TargetChooserOverrideExample.Description2"/>
   <br>
   <br>
   <iman:string key="TargetChooserOverrideExample.Description3"/>
   <br><br>
   <font size="-1"><iman:string key="TargetChooserOverrideExample.Select"/>:</font><font size="-2">(<iman:string key="TargetChooserOverrideExample.SelectHint"/>)</font>
   <br>
   <table>
      <c:forEach var="item" items="${Items}">
      <tr>
         <td>
         <% BaseGadgetInstance bgi = (BaseGadgetInstance) request.getAttribute("BGI"); %>
         &nbsp;&nbsp;&nbsp;<a href="webacc?NPService=fw.LaunchService&NPAction=Delegate&delegate=base.ModifyObject&merge=base.ModifyObject&launcher=<%= bgi.getPrimary().getGadgetInstanceID()%>&lifecycle=Recreate&targetNames=<iman:urlEncode><c:out value="${item}"/></iman:urlEncode>"><c:out value="${item}"/></a>
         </td>
      </tr>
      </c:forEach>
   </table>

   <BR><BR>
   <iman:bar/>
   <iman:cancelBtn key="OK"/>
   <iman:cancelBtn/>
</BODY>
</HTML>
