<%-- 
 * Licensed Materials - Property of Perforce Software, Inc.
 * © Copyright Perforce Software, Inc. 2014, 2018
 * © Copyright IBM Corp. 2009, 2014
 * © Copyright ILOG 1996, 2009
 * All Rights Reserved.
 *
 * Note to U.S. Government Users Restricted Rights:
 * The Software and Documentation were developed at private expense and
 * are "Commercial Items" as that term is defined at 48 CFR 2.101,
 * consisting of "Commercial Computer Software" and
 * "Commercial Computer Software Documentation", as such terms are
 * used in 48 CFR 12.212 or 48 CFR 227.7202-1 through 227.7202-4,
 * as applicable.
 --%>
<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>

<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
<%@ taglib uri="http://www.ilog.com/jviews/tlds/jviews-faces.tld" prefix="jv"%>
<%@ taglib uri="http://www.ilog.com/jviews/tlds/jviews-diagrammer-faces.tld" prefix="jvdf"%>

<f:view>
  <html>
  <head>
    <title>JViews Faces Diagrammer: Selection Sample</title>
    <link href="data/style.cssrel="stylesheettype="text/css/>
    <meta content="no-cachehttp-equiv="Cache-Control/>
    <meta content="no-cachehttp-equiv="Pragma/>
    <script src="data/openajax/all/OpenAjaxManagedHub-all.js"
            type="text/javascript"></script>
    <script src="data/client1.js"
            type="text/javascript"></script>
  </head>

  <body bgcolor="white" onload="loadEventHandler();">
  <span class="head2">Client: client1.jsp</span>

  <h:form id="jsf-diagrammer-oah">

    <jvdf:selectInteractor id="selectInterator"
                           moveAllowed="false" />

    <h:panelGrid columns="2bgcolor="#FFFFFFstyleClass="tableStyle">

      <jvdf:diagrammerView id="diagrammer1"
                           servlet="demo.servlet.DiagrammerServlet" 
                           style="width:600;height:350"
                           interactorId="selectInterator" 
                           data="/data/genealogy.idpr"
                           waitingImage="images/wait.gif"
                           messageBoxId="messages"
                           backgroundColor="#FFFFFF">
        <f:facet name="selectionManager">
          <jvdf:selectionManager id="selectionManagerimageMode="false"
            lineColor="#498CEElineWidth="2"
            onSelectionChanged="displaySelection(selection)"
            propertyAccessor="#{diagrammerBean.propertyAccessor}"
            forceUpdateProperties="true/>
        </f:facet>
      </jvdf:diagrammerView>

      <h:panelGrid columns="1border="0bgcolor="#FFFFFF">
        <f:verbatim>
          <span id="tableId"></span>
          <span id="objectId"></span>
        </f:verbatim>
      </h:panelGrid>
    </h:panelGrid>
  </h:form>

  </body>
  </html>

</f:view>