juddi-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From alexo...@apache.org
Subject svn commit: r1462384 [3/4] - in /juddi/branches/juddi-3.2.x/juddi-gui: src/java/org/apache/juddi/webconsole/ src/java/org/apache/juddi/webconsole/hub/ src/java/org/apache/juddi/webconsole/hub/builders/ web/ web/META-INF/ web/ajax/ web/js/
Date Fri, 29 Mar 2013 02:43:38 GMT
Copied: juddi/branches/juddi-3.2.x/juddi-gui/web/nodeinfo.jsp (from r1460942, juddi/branches/juddi-3.2.x/juddi-gui/web/tmodelEditor.jsp)
URL: http://svn.apache.org/viewvc/juddi/branches/juddi-3.2.x/juddi-gui/web/nodeinfo.jsp?p2=juddi/branches/juddi-3.2.x/juddi-gui/web/nodeinfo.jsp&p1=juddi/branches/juddi-3.2.x/juddi-gui/web/tmodelEditor.jsp&r1=1460942&r2=1462384&rev=1462384&view=diff
==============================================================================
--- juddi/branches/juddi-3.2.x/juddi-gui/web/tmodelEditor.jsp (original)
+++ juddi/branches/juddi-3.2.x/juddi-gui/web/nodeinfo.jsp Fri Mar 29 02:43:36 2013
@@ -1,18 +1,15 @@
 <%-- 
-    Document   : tmodelEditor
-    Created on : Feb 27, 2013, 9:31:19 PM
+    Document   : UDDI node info
+    Created on : March 28, 2013, 9:31:19 PM
     Author     : Alex O'Ree
 --%>
 
 
 
-<%@page import="org.uddi.api_v3.Description"%>
-<%@page import="org.uddi.api_v3.Name"%>
-<%@page import="org.uddi.api_v3.CategoryBag"%>
-<%@page import="org.uddi.api_v3.IdentifierBag"%>
+<%@page import="java.net.URLEncoder"%>
+<%@page import="org.uddi.api_v3.*"%>
 <%@page import="org.apache.juddi.webconsole.PostBackConstants"%>
-<%@page import="org.uddi.api_v3.TModel"%>
-<%@page import="org.uddi.api_v3.TModelDetail"%>
+<%@page import="org.apache.juddi.webconsole.hub.*"%>
 <%@page import="org.apache.juddi.query.FindBusinessByNameQuery"%>
 <%@page contentType="text/html" pageEncoding="UTF-8"%>
 <%@include file="header-top.jsp" %>
@@ -20,253 +17,19 @@
 
     <!-- Main hero unit for a primary marketing message or call to action -->
     <div class="well">
-        <h1>tModel Editor</h1>
+        <h1>UDDI Node Information</h1>
     </div>
 
     <!-- Example row of columns -->
     <div class="row">
         <div class="span12">
             <p>
-                <%                    
+                <%
                     UddiHub x = UddiHub.getInstance(application, session);
-                    TModel bd = hub.getTmodelDetails(request.getParameter("id"));
-                    boolean newitem = false;
-                    if (bd == null) {
-                        bd = new TModel();
-                        newitem = true;
-                    }
-                %>
-
-            <ul class="nav nav-tabs" id="myTab">
-                <li class="active"><a  href="#general">General</a></li>
-
-                <li><a href="#discovery" >Overview Documents</a></li>
-
-                <li><a href="#categories" >Categories</a></li>
-
-                <li><a href="#identifiers" >Identifiers</a></li>
-                <li><a href="#signatures" >Signatures</a></li>
-            </ul>
-            <script type="text/javascript">
-                $(function () {
-                    $('#myTab').tab;//('show');
-                })
-                $('#myTab a[href=#general]').click(function (e) {
-                    e.preventDefault();
-                    $(this).tab('show');
-                });
-                $('#myTab a[href=#discovery]').click(function (e) {
-                    e.preventDefault();
-                    $(this).tab('show');
-                });
-                
-                $('#myTab a[href=#categories]').click(function (e) {
-                    e.preventDefault();
-                    $(this).tab('show');
-                });
-                $('#myTab a[href=#identifiers]').click(function (e) {
-                    e.preventDefault();
-                    $(this).tab('show');
-                });
-
-                $('#myTab a[href=#signatures]').click(function (e) {
-                    e.preventDefault();
-                    $(this).tab('show');
-                });
-                    
-                var currentDescriptionEntries=<%=bd.getDescription().size()%>;
-                var currentOverviewDocs=<%=bd.getOverviewDoc().size()%>;
-                <%                    
-                    int currentDescriptionSpecific = 0;
-                    for (int i = 0; i < bd.getOverviewDoc().size(); i++) {
-                        currentDescriptionSpecific += bd.getOverviewDoc().get(i).getDescription().size();
-                    }
                     
-                    int currentcatkeyref = 0;
-                    if (bd.getCategoryBag() != null) {
-                        currentcatkeyref = bd.getCategoryBag().getKeyedReference().size();
-                    }
-                    int currentident = 0;
-                    if (bd.getIdentifierBag() != null) {
-                        currentident = bd.getIdentifierBag().getKeyedReference().size();
-                    }
                 %>
-                    var currentcatkeyref =<%=currentcatkeyref%>;
-                    var currentDescriptionSpecific=<%=currentDescriptionSpecific%>;
-                    var currentident=<%=currentident%>;
-            </script>
-            <div class="tab-content">
-                <div class="tab-pane active" id="general">
-                    <%                        
-                        if (!newitem) {
-                            out.write("<i class=\"icon-lock\"></i>");
-                        }
-                    %>
-                    The tModel Key is the unique identifier. If you specify a tModel, it must be prefixed with
-                    an existing partition (key generator), other one is generated for you.
-                    
-                    <div style="border-width: 2px; border-style: solid;" <%                        
-                        if (!newitem) {
-                            out.write("class=\"noedit\"");
-                        } else {
-                            out.write("class=\"edit\"");
-                        }
-                         %>
-                         id="<%=PostBackConstants.SERVICEKEY%>"><%                            
-                            out.write(StringEscapeUtils.escapeHtml(bd.getTModelKey()));
-                        %></div><br>
-
-
-                    Name - The name describes this tModel. It is a required field.
 
-                    <%                        
-                        
-                        if (bd.getName() == null) {
-                            bd.setName(new Name());
-                        }
-                        out.write("<div id=\"" + PostBackConstants.NAME + "\" style=\"border-width:2px; border-style:solid\" >");
-                        out.write("<div style=\"float:left; height:100%\"><a href=\"javascript:Remove('Name');\"><i class=\"icon-remove-sign\"></i></a></div>");
-                        out.write("<div style=\"float:left\">Value:&nbsp;</div>"
-                                + "<div class=\"edit\" id=\"" + PostBackConstants.NAME + PostBackConstants.VALUE + "\">" + (bd.getName().getValue() == null ? " " : StringEscapeUtils.escapeHtml(bd.getName().getValue())) + "</div>");
-                        out.write("<div style=\"float:left\">Language:&nbsp;</div>"
-                                + "<div class=\"edit\" id=\"" + PostBackConstants.NAME + PostBackConstants.LANG + "\">"
-                                + ((bd.getName().getLang() == null ? " " : StringEscapeUtils.escapeHtml(bd.getName().getLang())))
-                                + "</div>");
-                        
-                        out.write("</div>");
-                        
-                    %>
-
-                    <Br>
-                    <a href="javascript:AddDescription();"><i class="icon-plus-sign"></i></a> Description - businesses can have more than one description, such as in a different language.
-                    <div id="Description" style="border-width: 2px; border-style: solid;" >
-                        <%                            
-                            if (bd.getDescription() != null) //bd.(new Description());
-                            {
-                                for (int i = 0; i < bd.getDescription().size(); i++) {
-                                    out.write("<div id=\"" + PostBackConstants.DESCRIPTION + i + "\" style=\"border-width:1px; border-style:solid\">");
-                                    out.write("<div style=\"float:left;height:100%\"><a href=\"javascript:Remove('Description" + i + "');\"><i class=\"icon-remove-sign\"></i></a></div>");
-                                    out.write("<div style=\"float:left\">Value:&nbsp;</div>"
-                                            + "<div class=\"edit\" id=\"" + PostBackConstants.DESCRIPTION + i + PostBackConstants.VALUE + "\">" + StringEscapeUtils.escapeHtml(bd.getDescription().get(i).getValue()) + "</div>");
-                                    out.write("<div style=\"float:left\">Language:&nbsp;</div>"
-                                            + "<div class=\"edit\" id=\"" + PostBackConstants.DESCRIPTION + i + PostBackConstants.LANG + "\">"
-                                            + (bd.getDescription().get(i).getLang() != null
-                                            ? StringEscapeUtils.escapeHtml(bd.getDescription().get(i).getLang()) : "")
-                                            + "</div>");
-                                    
-                                    out.write("</div>");
-                                }
-                            }
-                        %>
-                    </div>
-                </div>
-
-                <div class="tab-pane " id="discovery">
-                    <a href="javascript:AddOverviewDocument();"><i class="icon-plus-sign"></i></a>Overview Documents - These are typically URLs to web pages that describe this tModel's details and usage scenarios.
-                    <%                        
-                        out.write("<div id=\"" + PostBackConstants.OVERVIEW + "\" style=\"border-width:2px; border-style:solid\">");
-                        for (int i = 0; i < bd.getOverviewDoc().size(); i++) {
-                            out.write("<div id=\"" + PostBackConstants.OVERVIEW + i + "\" style=\"border-width:1px; border-style:solid\">");
-                            out.write("<div style=\"float:left;height:100%\"><a href=\"javascript:Remove('" + PostBackConstants.OVERVIEW + i + "');\"><i class=\"icon-remove-sign\"></i></a></div>");
-                            out.write("<div style=\"float:left\">Value:&nbsp;</div>"
-                                    + "<div class=\"edit\" id=\"" + PostBackConstants.OVERVIEW + i + PostBackConstants.VALUE + "\">" + StringEscapeUtils.escapeHtml(bd.getOverviewDoc().get(i).getOverviewURL().getValue()) + "</div>");
-                            out.write("<div style=\"float:left\">Use type:&nbsp;</div>"
-                                    + "<div class=\"edit\" id=\"" + PostBackConstants.OVERVIEW + i + PostBackConstants.TYPE + "\">" + StringEscapeUtils.escapeHtml(bd.getOverviewDoc().get(i).getOverviewURL().getUseType()) + "</div>");
-                            
-                    %>
-
-                    <a href="javascript:AddDescriptionSpecific('<%=PostBackConstants.OVERVIEW + i + PostBackConstants.DESCRIPTION%> ');"><i class="icon-plus-sign"></i></a> Add a description
-                    <%                            
-                            out.write("<div id=\"" + PostBackConstants.OVERVIEW + i + PostBackConstants.DESCRIPTION + "\" style=\"border-width:1px; border-style:dotted\">");
-                            for (int k = 0; k < bd.getOverviewDoc().get(i).getDescription().size(); k++) {
-                                out.write("<div id=\"" + PostBackConstants.OVERVIEW + i + PostBackConstants.DESCRIPTION + k + "\" style=\"border-width:1px; border-style:solid\">");
-                                out.write("<div style=\"float:left;height:100%\"><a href=\"javascript:Remove('" + PostBackConstants.OVERVIEW + i + PostBackConstants.DESCRIPTION + k + "');\"><i class=\"icon-remove-sign\"></i></a></div>");
-                                out.write("<div style=\"float:left\">Value:&nbsp;</div>"
-                                        + "<div class=\"edit\" id=\"" + PostBackConstants.OVERVIEW + i + PostBackConstants.DESCRIPTION + k + PostBackConstants.VALUE + "\">" + StringEscapeUtils.escapeHtml(bd.getOverviewDoc().get(i).getDescription().get(k).getValue()) + "</div>");
-                                out.write("<div style=\"float:left\">Language:&nbsp;</div>"
-                                        + "<div class=\"edit\" id=\"" + PostBackConstants.OVERVIEW + i + PostBackConstants.DESCRIPTION + k + PostBackConstants.LANG + "\">" + StringEscapeUtils.escapeHtml(bd.getOverviewDoc().get(i).getDescription().get(k).getLang()) + "</div>");
-                                out.write("</div>"); //end of this instance of overview doc description
-                            }
-                            out.write("</div>");//end description
-                            out.write("</div>");//end this block
-                        }
-                        out.write("</div>");//end of overview
-                        %>
-
-                </div>
-
-                <div class="tab-pane " id="categories">
-
-
-                    <a href="javascript:AddCategoryKeyReference();"><i class="icon-plus-sign"></i></a> Add Key Reference Category <Br>
-                    <div id="catContainer" style="border-width: 2px; border-style: solid;" >
-                        <%                            
-                            if (bd.getCategoryBag() == null) {
-                                bd.setCategoryBag(new CategoryBag());
-                            }
-                            //                        out.write("Keyed Reference Categories:");
-                            for (int i = 0; i < bd.getCategoryBag().getKeyedReference().size(); i++) {
-                                
-                                out.write("<div id=\"catbagkeyref" + i + "\" style=\"border-width:2px; border-style:solid\">");
-                                out.write("<div style=\"float:left;height:100%\"><a href=\"javascript:Remove('catbagkeyref" + i + "');\"><i class=\"icon-remove-sign\"></i></a></div>");
-                                out.write("<div style=\"float:left\">Key: &nbsp;</div>"
-                                        + "<div class=\"edit\" id=\"catbagkeyref" + i + "Value\">" + StringEscapeUtils.escapeHtml(bd.getCategoryBag().getKeyedReference().get(i).getTModelKey()) + "</div>");
-                                out.write("<div style=\"float:left\">Name: &nbsp;</div>"
-                                        + "<div class=\"edit\" id=\"catbagkeyref" + i + "KeyName\">" + StringEscapeUtils.escapeHtml(bd.getCategoryBag().getKeyedReference().get(i).getKeyName()) + "</div>");
-                                out.write("<div style=\"float:left\">Value: &nbsp;</div>"
-                                        + "<div class=\"edit\" id=\"catbagkeyref" + i + "KeyValue\">" + StringEscapeUtils.escapeHtml(bd.getCategoryBag().getKeyedReference().get(i).getKeyValue()) + "</div>");
-                                out.write("</div>");
-                            }
-                        %>
-                    </div>
-
-                </div>
-                <div class="tab-pane " id="identifiers">
-                    Identifiers - optionally, you can attach identifiers that uniquely identify this business from other systems, such as a tax ID or a <a href="http://www.whitehouse.gov/sites/default/files/omb/grants/duns_num_guide.pdf">DUNS Number</a>.<Br>
-                    <a href="javascript:AddIdentKeyReference();"><i class="icon-plus-sign"></i></a> Add Key Reference Category <Br>
-                    <div id="identContainer" style="border-width: 2px; border-style: solid;" >
-                        <%                            
-                            if (bd.getIdentifierBag() == null) {
-                                bd.setIdentifierBag(new IdentifierBag());
-                            }
-                            for (int i = 0; i < bd.getIdentifierBag().getKeyedReference().size(); i++) {
-                                out.write("<div id=\"identbagkeyref" + i + "\" style=\"border-width:2px; border-style:solid\">");
-                                out.write("<div style=\"float:left;height:100%\"><a href=\"javascript:Remove('identbagkeyref" + i + "');\"><i class=\"icon-remove-sign\"></i></a></div>");
-                                out.write("<div style=\"float:left\">Key: &nbsp;</div>"
-                                        + "<div class=\"edit\" id=\"identbagkeyref" + i + "Value\">" + StringEscapeUtils.escapeHtml(bd.getIdentifierBag().getKeyedReference().get(i).getTModelKey()) + "</div>");
-                                out.write("<div style=\"float:left\">Name: &nbsp;</div>"
-                                        + "<div class=\"edit\" id=\"identbagkeyref" + i + "KeyName\">" + StringEscapeUtils.escapeHtml(bd.getIdentifierBag().getKeyedReference().get(i).getKeyName()) + "</div>");
-                                out.write("<div style=\"float:left\">Value: &nbsp;</div>"
-                                        + "<div class=\"edit\" id=\"identbagkeyref" + i + "KeyValue\">" + StringEscapeUtils.escapeHtml(bd.getIdentifierBag().getKeyedReference().get(i).getKeyValue()) + "</div>");
-                                out.write("</div>");
-                            }
-                        %>
-                    </div>
-                </div>
-                <div class="tab-pane " id="signatures">
-
-                    <%                        
-                        if (bd.getSignature().isEmpty()) {
-                            out.write("This item is not signed");
-                        } else {
-                            out.write("This item is signed by " + bd.getSignature().size());
-                        }
-                        
-                    %>
-                </div>
-                <div><br>
-                    <a class="btn btn-primary " href="javascript:savetModel();">Save</a> | 
-                    <a class="btn btn-danger " href="javascript:deletetModel();">Delete</a> |
-                    <a class="btn btn-success " href="#"">Digitally Sign</a>
-                </div>
-            </div>
-            <script src="js/tmodeledit.js"></script>
-            <script src="js/businessEditor.js"></script>
-            <script type="text/javascript">
-                Reedit();
-            </script>
-
-            </p>
+                
         </div>
     </div>
     <%@include file="header-bottom.jsp" %>
\ No newline at end of file

Modified: juddi/branches/juddi-3.2.x/juddi-gui/web/publisherBrowse.jsp
URL: http://svn.apache.org/viewvc/juddi/branches/juddi-3.2.x/juddi-gui/web/publisherBrowse.jsp?rev=1462384&r1=1462383&r2=1462384&view=diff
==============================================================================
--- juddi/branches/juddi-3.2.x/juddi-gui/web/publisherBrowse.jsp (original)
+++ juddi/branches/juddi-3.2.x/juddi-gui/web/publisherBrowse.jsp Fri Mar 29 02:43:36 2013
@@ -5,34 +5,7 @@
 --%>
 
 
-<%@page import="org.apache.juddi.webconsole.UddiHub"%>
-<%@page import="org.apache.juddi.v3.client.transport.Transport"%>
-
-<%@page import="org.apache.juddi.ClassUtil"%>
-<%@page import="org.apache.juddi.query.util.FindQualifiers"%>
-<%@page import="org.apache.juddi.v3.client.config.UDDIClientContainer"%>
-<%@page import="org.apache.juddi.v3.client.transport.Transport"%>
-<%@page import="org.apache.juddi.v3_service.JUDDIApiPortType"%>
-<%@page import="org.uddi.api_v3.AuthToken"%>
-<%@page import="org.uddi.api_v3.BindingTemplates"%>
-<%@page import="org.uddi.api_v3.BusinessDetail"%>
-<%@page import="org.uddi.api_v3.BusinessInfos"%>
-<%@page import="org.uddi.api_v3.BusinessList"%>
-<%@page import="org.uddi.api_v3.BusinessService"%>
-<%@page import="org.uddi.api_v3.CategoryBag"%>
-<%@page import="org.uddi.api_v3.Contacts"%>
-<%@page import="org.uddi.api_v3.Description"%>
-<%@page import="org.uddi.api_v3.FindBusiness"%>
-<%@page import="org.uddi.api_v3.GetAuthToken"%>
-<%@page import="org.uddi.api_v3.GetBusinessDetail"%>
-<%@page import="org.uddi.api_v3.GetServiceDetail"%>
-<%@page import="org.uddi.api_v3.KeyedReference"%>
-<%@page import="org.uddi.api_v3.Name"%>
-<%@page import="org.uddi.api_v3.ServiceDetail"%>
-<%@page import="org.uddi.api_v3.ServiceInfos"%>
-<%@page import="org.uddi.v3_service.UDDIInquiryPortType"%>
-<%@page import="org.uddi.v3_service.UDDISecurityPortType"%>
-
+<%@page import="org.apache.juddi.webconsole.hub.UddiHub"%>
 <%@page contentType="text/html" pageEncoding="UTF-8"%>
 <%@include file="header-top.jsp" %>
 <div class="container">

Modified: juddi/branches/juddi-3.2.x/juddi-gui/web/search.jsp
URL: http://svn.apache.org/viewvc/juddi/branches/juddi-3.2.x/juddi-gui/web/search.jsp?rev=1462384&r1=1462383&r2=1462384&view=diff
==============================================================================
--- juddi/branches/juddi-3.2.x/juddi-gui/web/search.jsp (original)
+++ juddi/branches/juddi-3.2.x/juddi-gui/web/search.jsp Fri Mar 29 02:43:36 2013
@@ -5,7 +5,7 @@
 --%>
 
 <%@page import="org.apache.juddi.query.util.FindQualifiers"%>
-<%@page import="org.apache.juddi.webconsole.UddiHub"%>
+<%@page import="org.apache.juddi.webconsole.hub.UddiHub"%>
 
 <%@page contentType="text/html" pageEncoding="UTF-8"%>
 <%@include file="header-top.jsp" %>

Modified: juddi/branches/juddi-3.2.x/juddi-gui/web/serviceBrowse.jsp
URL: http://svn.apache.org/viewvc/juddi/branches/juddi-3.2.x/juddi-gui/web/serviceBrowse.jsp?rev=1462384&r1=1462383&r2=1462384&view=diff
==============================================================================
--- juddi/branches/juddi-3.2.x/juddi-gui/web/serviceBrowse.jsp (original)
+++ juddi/branches/juddi-3.2.x/juddi-gui/web/serviceBrowse.jsp Fri Mar 29 02:43:36 2013
@@ -4,7 +4,7 @@
     Author     : Alex O'Ree
 --%>
 
-<%@page import="org.apache.juddi.webconsole.UddiHub"%>
+<%@page import="org.apache.juddi.webconsole.hub.UddiHub"%>
 
 <%@page contentType="text/html" pageEncoding="UTF-8"%>
 <%@include file="header-top.jsp" %>

Modified: juddi/branches/juddi-3.2.x/juddi-gui/web/serviceEditor.jsp
URL: http://svn.apache.org/viewvc/juddi/branches/juddi-3.2.x/juddi-gui/web/serviceEditor.jsp?rev=1462384&r1=1462383&r2=1462384&view=diff
==============================================================================
--- juddi/branches/juddi-3.2.x/juddi-gui/web/serviceEditor.jsp (original)
+++ juddi/branches/juddi-3.2.x/juddi-gui/web/serviceEditor.jsp Fri Mar 29 02:43:36 2013
@@ -4,15 +4,10 @@
     Author     : Alex O'Ree
 --%>
 
-<%@page import="org.uddi.api_v3.BindingTemplates"%>
-<%@page import="org.uddi.api_v3.BusinessService"%>
-<%@page import="org.uddi.api_v3.IdentifierBag"%>
-<%@page import="org.uddi.api_v3.CategoryBag"%>
-<%@page import="org.uddi.api_v3.Contacts"%>
-<%@page import="org.uddi.api_v3.BusinessEntity"%>
+<%@page import="java.net.URLEncoder"%>
+<%@page import="org.uddi.api_v3.*"%>
 <%@page import="org.apache.juddi.webconsole.PostBackConstants"%>
-
-<%@page import="org.apache.juddi.webconsole.UddiHub"%>
+<%@page import="org.apache.juddi.webconsole.hub.UddiHub"%>
 
 <%@page contentType="text/html" pageEncoding="UTF-8"%>
 <%@include file="header-top.jsp" %>
@@ -58,14 +53,14 @@
                             bd.setBusinessKey(be.getBusinessKey());
                         }
                     }
-                    
+
                     if (bd == null) {
                         response.sendError(501);
                     }
                     int totalBTDescriptions = 0;
                 %>
 
-                <i class="icon-lock"></i>Business Key -
+                <i class="icon-lock"></i><b>Business Key </b>-
                 The Business Key is the unique identifier for the business that this service belongs to. It cannot be modified.<br>
                 <div style="border-width: 2px; border-style: solid;" class="noedit" id="<%=PostBackConstants.BUSINESSKEY%>">
                     <%
@@ -81,7 +76,7 @@
                             out.write("<i class=\"icon-lock\"></i>");
                         }
                     %>
-                Service Key -
+                <b>Service Key </b>-
                 The Business Key is the unique identifier for the business that this service belongs to. If you specify a service key, it must be prefixed with
                 an existing partition (key generator).
                 <div style="border-width: 2px; border-style: solid;" <%
@@ -102,18 +97,31 @@
                         if (bd.getBindingTemplates() == null) {
                             bd.setBindingTemplates(new BindingTemplates());
                         }
+                        int currentcatkeyrefBT = 0;
+                        int currentcatkeyrefgrpBT = 0;
+                        int currentbindingtemplatesInstance = 0;
+                        for (int i = 0; i < bd.getBindingTemplates().getBindingTemplate().size(); i++) {
+                            if (bd.getBindingTemplates().getBindingTemplate().get(i).getCategoryBag() != null) {
+                                currentcatkeyrefBT += bd.getBindingTemplates().getBindingTemplate().get(i).getCategoryBag().getKeyedReference().size();
+                                currentcatkeyrefgrpBT += bd.getBindingTemplates().getBindingTemplate().get(i).getCategoryBag().getKeyedReferenceGroup().size();
+                            }
+                            if (bd.getBindingTemplates().getBindingTemplate().get(i).getTModelInstanceDetails() != null) {
+                                currentbindingtemplatesInstance = bd.getBindingTemplates().getBindingTemplate().get(i).getTModelInstanceDetails().getTModelInstanceInfo().size();
+                            }
+                        }
+
 
                     %></div><br>
 
                 <script type="text/javascript">
                     var currentNameEntries=<%= bd.getName().size() - 1%>;
-                    
+                    var currentbindingtemplatesInstance =<%=currentbindingtemplatesInstance%>;
                     var currentDescriptionEntries=<%= bd.getDescription().size() - 1%>;
-                    
+                    var currentcatkeyrefBT=<%=currentcatkeyrefBT%>;
                     var currentcatkeyref=<%=bd.getCategoryBag().getKeyedReference().size()%>;
+                    var currentcatkeyrefgrpBT=<%=currentcatkeyrefgrpBT%>;
                     var currentcatkeyrefgrp=<%=bd.getCategoryBag().getKeyedReferenceGroup().size()%>;
                     var currentbindingtemplates = <%=bd.getBindingTemplates().getBindingTemplate().size()%>;
-                    
                 </script> 
 
                 <ul class="nav nav-tabs" id="myTab">
@@ -124,6 +132,8 @@
                     <li><a href="#bindingtemplates" >Binding Templates</a></li>
 
                     <li><a href="#signatures" >Signatures</a></li>
+
+                    <li><a href="#opinfo" >Operational Info</a></li>
                 </ul>
                 <script>
                     $(function () {
@@ -145,6 +155,10 @@
                         e.preventDefault();
                         $(this).tab('show');
                     });
+                    $('#myTab a[href=#opinfo]').click(function (e) {
+                        e.preventDefault();
+                        $(this).tab('show');
+                    });
                     
                 </script>
                 <div class="tab-content">
@@ -153,7 +167,7 @@
 
 
 
-                        <a href="javascript:AddName();"><i class="icon-plus-sign"></i></a> Name - 
+                        <a href="javascript:AddName();"><i class="icon-plus-sign"></i></a> <b>Name </b>- 
                         Services are identified by one or more name. Multiple names are useful for different languages, legal names, or abbreviations.
                         <div id="nameContainer" style="border-width: 2px; border-style: solid;" >
                             <%
@@ -169,7 +183,7 @@
                                 }
                             %></div>
                         <Br>
-                        <a href="javascript:AddDescription('Description');"><i class="icon-plus-sign"></i></a> Description - businesses can have more than one description, such as in a different language.
+                        <a href="javascript:AddDescription('Description');"><i class="icon-plus-sign"></i></a> <b>Description </b>- businesses can have more than one description, such as in a different language.
                         <div id="Description" style="border-width: 2px; border-style: solid;" >
                             <%
                                 for (int i = 0; i < bd.getDescription().size(); i++) {
@@ -187,7 +201,7 @@
                     </div>
                     <div class="tab-pane" id="categories">
 
-                        Categories - UDDI uses a taxonomy system to categorize businesses and their services. These categories are defined as UDDI tModels and
+                        <b>Categories </b>- UDDI uses a taxonomy system to categorize businesses and their services. These categories are defined as UDDI tModels and
                         are defined by the administrator(s) of this UDDI node. These categories are appended to business registrations either by adding one or more "Key References"
                         or by adding one or more "Key Reference Groups", which in turn can be a zero or more of Key References as part of it.<br><br>
                         Service Keyed Reference Categories:<Br>
@@ -215,7 +229,7 @@
                             %>
                         </div>
                         <br>
-                        Service Keyed Reference Groups<br>
+                        <b>Service Keyed Reference Groups</b><br>
                         <div id="catContainerGrp" style="border-width: 2px; border-style: solid;" >
 
                             <a href="javascript:AddCategoryKeyReferenceGroup();"><i class="icon-plus-sign"></i></a> Add Key Reference Group Category<br>
@@ -263,16 +277,16 @@
                             %>
                         </div>
                     </div>
-                        
+
                     <div class="tab-pane" id="bindingtemplates">
-                        Binding Templates - A service in UDDI really defines a specific type of service, not necessarily an implementation of a service. Binding templates
+                        <b>Binding Templates </b>- A service in UDDI really defines a specific type of service, not necessarily an implementation of a service. Binding templates
                         define specifically an implementation of a service and normally includes an access point describing how to use the service. Each service may have 0 or more
                         binding templates. Some registries impose limits on the number of binding templates per service.<br>
                         <a href="javascript:AddBindingTemplate();"><i class="icon-plus-sign"></i></a> Add a Binding Template<Br>
-                        <div id="bindingTemplatesContainer" style="border-width: 2px; border-style: solid;">
+                        <div id="bindingTemplatesContainer" style="border-width: 2px; border-style: solid">
                             <%
                                 for (int i = 0; i < bd.getBindingTemplates().getBindingTemplate().size(); i++) {
-                                    out.write("<div id=\"bindingTemplate" + i + "\"  style=\"border-width: 1px; border-style: dashed;\" >");
+                                    out.write("<div id=\"bindingTemplate" + i + "\"  style=\"border-width: 2px; border-style: dashed;; border-color: lightseagreen\" >");
                                     out.write("<div style=\"float:left\">"
                                             + "<a href=\"javascript:Remove('" + PostBackConstants.BINDINGTEMPLATE + i + "');\"><i class=\"icon-remove-sign\"></i></a>"
                                             + "Binding Template Key: &nbsp;</div>"
@@ -280,9 +294,15 @@
                                     if (!newitem) {
                                         out.write("no");
                                     }
-                                    out.write("edit\" id=\"" + PostBackConstants.BINDINGTEMPLATE + i + PostBackConstants.VALUE + "\">" + StringEscapeUtils.escapeHtml(bd.getBindingTemplates().getBindingTemplate().get(i).getBindingKey()) + "</div>");
+                                    out.write("edit\" id=\"" + PostBackConstants.BINDINGTEMPLATE + i + PostBackConstants.VALUE + "\">");
+                                    if (!newitem) {
+                                        out.write(StringEscapeUtils.escapeHtml(bd.getBindingTemplates().getBindingTemplate().get(i).getBindingKey()));
+                                    }
+                                    // out.write("</div>");
                             %>          
-                            <a href="javascript:AddDescriptionSpecific('<%=PostBackConstants.BINDINGTEMPLATE + i + PostBackConstants.DESCRIPTION%>');"><i class="icon-plus-sign"></i></a> Description - binding templates can have more than one description, such as in a different language.
+                            <br>
+                            <a href="javascript:AddDescriptionSpecific('<%=PostBackConstants.BINDINGTEMPLATE + i + PostBackConstants.DESCRIPTION%>');"><i class="icon-plus-sign"></i></a>Add a Binding Template Description - binding templates can have more than one description, such as in a different language.<Br>
+
                             <div id="<%=PostBackConstants.BINDINGTEMPLATE + i + PostBackConstants.DESCRIPTION%>" style="border-width: 1px; border-style: dotted;" >
                                 <%
                                     for (int k = 0; k < bd.getBindingTemplates().getBindingTemplate().get(i).getDescription().size(); k++) {
@@ -301,108 +321,264 @@
                                     }
                                 %>
                             </div>
+                            <b>Access Point</b> - UDDI allows for a choice of either a Hosting Redirector OR an Access Point. Access Point is recommend. The access point is usually a URL for the service endpoint.<br>
                             <%
 
 
-                                out.write("<Br>UDDI allows for a choice of either a Hosting Redirector OR an Access Point. Access Point is recommend.<br>");
-                                out.write("<div id=\"" + PostBackConstants.BINDINGTEMPLATE + i + "\" style=\"border-width:1px; border-style:solid\" >");
+
+                                //out.write("<div id=\"" + PostBackConstants.BINDINGTEMPLATE + i + "\" style=\"border-width:1px; border-style:solid\" >");
                                 //need an html select in here
                                 if (bd.getBindingTemplates().getBindingTemplate().get(i).getHostingRedirector() != null) {
-                                    out.write("<div style=\"float:left\">Hosting Redirector&nbsp;</div>"
-                                            + "<div class=\"edit\" id=\"" + PostBackConstants.BINDINGTEMPLATE + i + "hostingRedirector" + "\">" + StringEscapeUtils.escapeHtml(bd.getBindingTemplates().getBindingTemplate().get(i).getHostingRedirector().getBindingKey()) + "</div>");
+                                    out.write("<div style=\"float:left\">Hosting Redirector: &nbsp;</div>"
+                                            + "<div class=\"edit\" id=\"" + PostBackConstants.BINDINGTEMPLATE + i + PostBackConstants.HOSTINGREDIRECTOR + "\">" + StringEscapeUtils.escapeHtml(bd.getBindingTemplates().getBindingTemplate().get(i).getHostingRedirector().getBindingKey()) + "</div>");
                                 }
                                 if (bd.getBindingTemplates().getBindingTemplate().get(i).getAccessPoint() != null) {
 
                                     out.write("<div style=\"float:left\">Access Point Type: &nbsp;</div>"
-                                            + "<div class=\"edit\" id=\"" + PostBackConstants.BINDINGTEMPLATE + i + "accessPointType" + "\">" + StringEscapeUtils.escapeHtml(bd.getBindingTemplates().getBindingTemplate().get(i).getAccessPoint().getUseType()) + "</div>");
-                                    out.write("<div style=\"float:left\">Access Point Type: &nbsp;</div>"
-                                            + "<div class=\"edit\" id=\"" + PostBackConstants.BINDINGTEMPLATE + i + "accessPointValue" + "\">" + StringEscapeUtils.escapeHtml(bd.getBindingTemplates().getBindingTemplate().get(i).getAccessPoint().getValue()) + "</div>");
+                                            + "<div class=\"edit\" id=\"" + PostBackConstants.BINDINGTEMPLATE + i + PostBackConstants.ACCESSPOINT_TYPE + "\">" + StringEscapeUtils.escapeHtml(bd.getBindingTemplates().getBindingTemplate().get(i).getAccessPoint().getUseType()) + "</div>");
+                                    out.write("<div style=\"float:left\">Access Point Value: &nbsp;</div>"
+                                            + "<div class=\"edit\" id=\"" + PostBackConstants.BINDINGTEMPLATE + i + PostBackConstants.ACCESSPOINT_VALUE + "\">" + StringEscapeUtils.escapeHtml(bd.getBindingTemplates().getBindingTemplate().get(i).getAccessPoint().getValue()) + "</div>");
                                     out.write("</div>");
                                 }
                             %>
 
-                            <a href="javascript:AddTmodelInstance('<%=PostBackConstants.BINDINGTEMPLATE + i + PostBackConstants.TMODELINSTANCE%>');"><i class="icon-plus-sign"></i></a> tModel Instance Information - a binding template can have one or more instances of tModels. This can be used to attach any data you wish to a binding template, provided the tModel has been defined.
+                            <br>
+                            <b>tModel Instance Information</b> - a binding template can have additional information attached to it using the tModel Instance.<br>
+                            <a href="javascript:AddTmodelInstance('<%=PostBackConstants.BINDINGTEMPLATE + i + PostBackConstants.TMODELINSTANCE%>');"><i class="icon-plus-sign"></i></a> Add a tModel Instance<br>
                             <div id="<%=PostBackConstants.BINDINGTEMPLATE + i + PostBackConstants.TMODELINSTANCE%>" style="border-width: 1px; border-style: solid; border-color: red" >        
                                 <%
                                     if (bd.getBindingTemplates().getBindingTemplate().get(i).getTModelInstanceDetails() != null) {
                                         for (int k = 0; k < bd.getBindingTemplates().getBindingTemplate().get(i).getTModelInstanceDetails().getTModelInstanceInfo().size(); k++) {
-                                            out.write("<div style=\"float:left\">tModel Key: &nbsp;</div>"
-                                                    + "<div class=\"edit\" id=\"" + PostBackConstants.BINDINGTEMPLATE + i + PostBackConstants.TMODELINSTANCE + k + PostBackConstants.KEYNAME + "\">" + StringEscapeUtils.escapeHtml(bd.getBindingTemplates().getBindingTemplate().get(i).getTModelInstanceDetails().getTModelInstanceInfo().get(k).getTModelKey()) + "</div>");
-                                            out.write("<div style=\"float:left\"><span title=\"Instance Params\">Value</span>:&nbsp;</div>"
-                                                    + "<div class=\"edit\" id=\"" + PostBackConstants.BINDINGTEMPLATE + i + PostBackConstants.TMODELINSTANCE + k + PostBackConstants.VALUE + "\">" + ((bd.getBindingTemplates().getBindingTemplate().get(i).getTModelInstanceDetails().getTModelInstanceInfo().get(k).getInstanceDetails() != null) ? StringEscapeUtils.escapeHtml(bd.getBindingTemplates().getBindingTemplate().get(i).getTModelInstanceDetails().getTModelInstanceInfo().get(k).getInstanceDetails().getInstanceParms()) : "") + "</div>");
                                 %>
-                                <a href="javascript:AddDescriptionSpecific('<%=PostBackConstants.BINDINGTEMPLATE + i + PostBackConstants.TMODELINSTANCE + k + PostBackConstants.DESCRIPTION%>');"><i class="icon-plus-sign"></i></a> Description - tModel instance infos can have more than one description, such as in a different language.
-                                <div id="<%=PostBackConstants.BINDINGTEMPLATE + i + PostBackConstants.TMODELINSTANCE + k + PostBackConstants.DESCRIPTION%>" style="border-width: 1px; border-style: groove;" >
+                                <div id="<%=PostBackConstants.BINDINGTEMPLATE + i + PostBackConstants.TMODELINSTANCE + k%>" style="border-width: 2px; border-style: dashed; border-color: red" >        
                                     <%
-                                        for (int j = 0; j < bd.getBindingTemplates().getBindingTemplate().get(i).getTModelInstanceDetails().getTModelInstanceInfo().get(k).getDescription().size(); k++) {
-                                            out.write("<div id=\"" + PostBackConstants.BINDINGTEMPLATE + i + PostBackConstants.TMODELINSTANCE + k + PostBackConstants.DESCRIPTION + j + "\" style=\"border-width:1px; border-style:solid\">");
-                                            out.write("<div style=\"float:left;height:100%\">"
-                                                    + "<a href=\"javascript:Remove('" + PostBackConstants.BINDINGTEMPLATE + i + PostBackConstants.TMODELINSTANCE + k + PostBackConstants.DESCRIPTION + j + "');\"><i class=\"icon-remove-sign\"></i></a></div>");
-                                            out.write("<div style=\"float:left\">Value:&nbsp;</div>"
-                                                    + "<div class=\"edit\" id=\"" + PostBackConstants.BINDINGTEMPLATE + i + PostBackConstants.TMODELINSTANCE + k + PostBackConstants.DESCRIPTION + j + PostBackConstants.VALUE + "\">" + StringEscapeUtils.escapeHtml(bd.getBindingTemplates().getBindingTemplate().get(i).getTModelInstanceDetails().getTModelInstanceInfo().get(k).getDescription().get(j).getValue()) + "</div>");
-                                            out.write("<div style=\"float:left\">Language:&nbsp;</div>"
-                                                    + "<div class=\"edit\" id=\"" + PostBackConstants.BINDINGTEMPLATE + i + PostBackConstants.TMODELINSTANCE + k + PostBackConstants.DESCRIPTION + j + PostBackConstants.LANG + "\">"
-                                                    + (bd.getBindingTemplates().getBindingTemplate().get(i).getTModelInstanceDetails().getTModelInstanceInfo().get(k).getDescription().get(j).getLang() == null ? " " : StringEscapeUtils.escapeHtml(bd.getBindingTemplates().getBindingTemplate().get(i).getTModelInstanceDetails().getTModelInstanceInfo().get(k).getDescription().get(j).getLang()))
-                                                    + "</div>");
-                                            out.write("</div>");
-                                        }
-                                    %>
-                                </div>
-                                <%    }
-                                    }
-                                    //TODO bd.getBindingTemplates().getBindingTemplate().get(i).getCategoryBag()
-%>
-                                Binding Template Keyed Reference Categories:<Br>
+                                        out.write("<div style=\"float:left;height:100%\">"
+                                                + "<a href=\"javascript:Remove('" + PostBackConstants.BINDINGTEMPLATE + i + PostBackConstants.TMODELINSTANCE + k + "');\"><i class=\"icon-remove-sign\"></i></a></div>");
 
-                                <a href="javascript:AddCategoryKeyReferenceSpecific('<%=PostBackConstants.BINDINGTEMPLATE + i + PostBackConstants.CATBAG_KEY_REF%>');"><i class="icon-plus-sign"></i></a> Add Key Reference Category <Br>
-                                <div id="<%=PostBackConstants.BINDINGTEMPLATE + i + PostBackConstants.CATBAG_KEY_REF%>" style="border-width: 1px; border-style: dotted;" >
+                                        out.write("<div style=\"float:left\"><b>tModel Key: </b>&nbsp;</div>"
+                                                + "<div class=\"edit\" id=\"" + PostBackConstants.BINDINGTEMPLATE + i + PostBackConstants.TMODELINSTANCE + k + PostBackConstants.KEYNAME + "\">" + StringEscapeUtils.escapeHtml(bd.getBindingTemplates().getBindingTemplate().get(i).getTModelInstanceDetails().getTModelInstanceInfo().get(k).getTModelKey()) + "</div>");
+                                        //  out.write("<div style=\"float:left\"><span title=\"Instance Params\">Value</span>:&nbsp;</div>"
+                                        //          + "<div class=\"edit\" id=\"" + PostBackConstants.BINDINGTEMPLATE + i + PostBackConstants.TMODELINSTANCE + k + PostBackConstants.VALUE + "\">" + ((bd.getBindingTemplates().getBindingTemplate().get(i).getTModelInstanceDetails().getTModelInstanceInfo().get(k).getInstanceDetails() != null) ? StringEscapeUtils.escapeHtml(bd.getBindingTemplates().getBindingTemplate().get(i).getTModelInstanceDetails().getTModelInstanceInfo().get(k).getInstanceDetails().getInstanceParms()) : "") + "</div>");
+                                    %>
+                                    <br>
                                     <%
-                                        if (bd.getBindingTemplates().getBindingTemplate().get(i).getCategoryBag() != null) {
-                                            for (int k = 0; k < bd.getBindingTemplates().getBindingTemplate().get(i).getCategoryBag().getKeyedReference().size(); k++) {
-                                            }
-                                        }
 
+                                        out.write("<div style=\"float:left\"><b>tModel Instance Parameters:</b> &nbsp;</div>"
+                                                + "<div class=\"edit\" id=\"" + PostBackConstants.BINDINGTEMPLATE + i + PostBackConstants.TMODELINSTANCE + k + PostBackConstants.INSTANCE + PostBackConstants.VALUE + "\">" + StringEscapeUtils.escapeHtml(bd.getBindingTemplates().getBindingTemplate().get(i).getTModelInstanceDetails().getTModelInstanceInfo().get(k).getInstanceDetails().getInstanceParms()) + "</div>");
                                     %>
+                                    <br>
+
+                                    <b>tModel Instance Description</b> - tModel instance infos can have more than one description, such as in a different language.<br>
+                                    <a href="javascript:AddDescriptionSpecific('<%=PostBackConstants.BINDINGTEMPLATE + i + PostBackConstants.TMODELINSTANCE + k + PostBackConstants.INSTANCE + PostBackConstants.DESCRIPTION%>');"><i class="icon-plus-sign"></i></a> Add a tModel Instance Description<br>
+                                    <div id="<%=PostBackConstants.BINDINGTEMPLATE + i + PostBackConstants.TMODELINSTANCE + k + PostBackConstants.INSTANCE + PostBackConstants.DESCRIPTION%>" style="border-width: 1px; border-style: groove;" >
+                                        <%
+                                            for (int j = 0; j < bd.getBindingTemplates().getBindingTemplate().get(i).getTModelInstanceDetails().getTModelInstanceInfo().get(k).getDescription().size(); j++) {
+                                                out.write("<div id=\"" + PostBackConstants.BINDINGTEMPLATE + i + PostBackConstants.TMODELINSTANCE + k + PostBackConstants.INSTANCE + PostBackConstants.DESCRIPTION + j + "\" style=\"border-width:1px; border-style:solid\">");
+                                                out.write("<div style=\"float:left;height:100%\">"
+                                                        + "<a href=\"javascript:Remove('" + PostBackConstants.BINDINGTEMPLATE + i + PostBackConstants.TMODELINSTANCE + k + PostBackConstants.INSTANCE + PostBackConstants.DESCRIPTION + j + "');\"><i class=\"icon-remove-sign\"></i></a></div>");
+                                                out.write("<div style=\"float:left\">Value:&nbsp;</div>"
+                                                        + "<div class=\"edit\" id=\"" + PostBackConstants.BINDINGTEMPLATE + i + PostBackConstants.TMODELINSTANCE + k + PostBackConstants.INSTANCE + PostBackConstants.DESCRIPTION + j + PostBackConstants.VALUE + "\">" + StringEscapeUtils.escapeHtml(bd.getBindingTemplates().getBindingTemplate().get(i).getTModelInstanceDetails().getTModelInstanceInfo().get(k).getDescription().get(j).getValue()) + "</div>");
+                                                out.write("<div style=\"float:left\">Language:&nbsp;</div>"
+                                                        + "<div class=\"edit\" id=\"" + PostBackConstants.BINDINGTEMPLATE + i + PostBackConstants.TMODELINSTANCE + k + PostBackConstants.INSTANCE + PostBackConstants.DESCRIPTION + j + PostBackConstants.LANG + "\">"
+                                                        + (bd.getBindingTemplates().getBindingTemplate().get(i).getTModelInstanceDetails().getTModelInstanceInfo().get(k).getDescription().get(j).getLang() == null ? " " : StringEscapeUtils.escapeHtml(bd.getBindingTemplates().getBindingTemplate().get(i).getTModelInstanceDetails().getTModelInstanceInfo().get(k).getDescription().get(j).getLang()))
+                                                        + "</div>");
+                                                out.write("</div>");
+                                            }
+
+                                        %>
+                                    </div>
+
+                                    <div><br>
+                                        <b>Overview Documents</b> - These are typically URLs to web pages that describe this tModel's details and usage scenarios.<br>
+                                        <a href="javascript:AddOverviewDocumentSpecific('<%=PostBackConstants.BINDINGTEMPLATE + i + PostBackConstants.TMODELINSTANCE + k + PostBackConstants.INSTANCE + PostBackConstants.OVERVIEW%>');"><i class="icon-plus-sign"></i></a> Add an Overview Document<br>
+                                        <div id="<%=PostBackConstants.BINDINGTEMPLATE + i + PostBackConstants.TMODELINSTANCE + k + PostBackConstants.OVERVIEW%>" style="border-width: 1px; border-style: groove;" >
+                                            <%
+                                                //  out.write("<div id=\"" + PostBackConstants.OVERVIEW + "\" style=\"border-width:2px; border-style:solid\">");
+                                                for (int j = 0; j < bd.getBindingTemplates().getBindingTemplate().get(i).getTModelInstanceDetails().getTModelInstanceInfo().get(k).getInstanceDetails().getOverviewDoc().size(); j++) {
+                                                    out.write("<div id=\"" + PostBackConstants.BINDINGTEMPLATE + i + PostBackConstants.TMODELINSTANCE + k + PostBackConstants.INSTANCE + PostBackConstants.OVERVIEW + j + "\" style=\"border-width:1px; border-style:solid\">");
+                                                    out.write("<div style=\"float:left;height:100%\"><a href=\"javascript:Remove('" + PostBackConstants.BINDINGTEMPLATE + i + PostBackConstants.TMODELINSTANCE + k + PostBackConstants.INSTANCE + PostBackConstants.OVERVIEW + j + "');\"><i class=\"icon-remove-sign\"></i></a></div>");
+                                                    out.write("<div style=\"float:left\">Value:&nbsp;</div>"
+                                                            + "<div class=\"edit\" id=\"" + PostBackConstants.BINDINGTEMPLATE + i + PostBackConstants.TMODELINSTANCE + k + PostBackConstants.INSTANCE + PostBackConstants.OVERVIEW + j + PostBackConstants.VALUE + "\">" + StringEscapeUtils.escapeHtml(bd.getBindingTemplates().getBindingTemplate().get(i).getTModelInstanceDetails().getTModelInstanceInfo().get(k).getInstanceDetails().getOverviewDoc().get(j).getOverviewURL().getValue()) + "</div>");
+                                                    out.write("<div style=\"float:left\">Use type:&nbsp;</div>"
+                                                            + "<div class=\"edit\" id=\"" + PostBackConstants.BINDINGTEMPLATE + i + PostBackConstants.TMODELINSTANCE + k + PostBackConstants.INSTANCE + PostBackConstants.OVERVIEW + j + PostBackConstants.TYPE + "\">" + StringEscapeUtils.escapeHtml(bd.getBindingTemplates().getBindingTemplate().get(i).getTModelInstanceDetails().getTModelInstanceInfo().get(k).getInstanceDetails().getOverviewDoc().get(j).getOverviewURL().getUseType()) + "</div>");
+                                            %>
+                                            <br><b>Overview Document Descriptions</b><br>
+                                            <a href="javascript:AddDescriptionSpecific('<%=PostBackConstants.BINDINGTEMPLATE + i + PostBackConstants.TMODELINSTANCE + k + PostBackConstants.INSTANCE + PostBackConstants.OVERVIEW + j + PostBackConstants.DESCRIPTION%>');"><i class="icon-plus-sign"></i></a>Add an Overview Document Description
+                                            <div id="<%=PostBackConstants.BINDINGTEMPLATE + i + PostBackConstants.TMODELINSTANCE + k + PostBackConstants.INSTANCE + PostBackConstants.OVERVIEW + j + PostBackConstants.DESCRIPTION%>" style="border-width: 1px; border-style: groove;" >
+                                                <%
+                                                    //  out.write("<div id=\"" + PostBackConstants.OVERVIEW + "\" style=\"border-width:2px; border-style:solid\">");
+                                                    for (int h = 0; h < bd.getBindingTemplates().getBindingTemplate().get(i).getTModelInstanceDetails().getTModelInstanceInfo().get(k).getInstanceDetails().getOverviewDoc().get(j).getDescription().size(); h++) {
+                                                        out.write("<div id=\"" + PostBackConstants.BINDINGTEMPLATE + i + PostBackConstants.TMODELINSTANCE + k + PostBackConstants.INSTANCE + PostBackConstants.OVERVIEW + j + PostBackConstants.DESCRIPTION + h + "\" style=\"border-width:1px; border-style:solid\">");
+                                                        out.write("<div style=\"float:left;height:100%\"><a href=\"javascript:Remove('" + PostBackConstants.BINDINGTEMPLATE + i + PostBackConstants.TMODELINSTANCE + k + PostBackConstants.INSTANCE + PostBackConstants.OVERVIEW + j + PostBackConstants.DESCRIPTION + h + "');\"><i class=\"icon-remove-sign\"></i></a></div>");
+                                                        out.write("<div style=\"float:left\">Value:&nbsp;</div>"
+                                                                + "<div class=\"edit\" id=\"" + PostBackConstants.BINDINGTEMPLATE + i + PostBackConstants.TMODELINSTANCE + k + PostBackConstants.INSTANCE + PostBackConstants.OVERVIEW + j + PostBackConstants.DESCRIPTION + h + PostBackConstants.VALUE + "\">" + StringEscapeUtils.escapeHtml(bd.getBindingTemplates().getBindingTemplate().get(i).getTModelInstanceDetails().getTModelInstanceInfo().get(k).getInstanceDetails().getOverviewDoc().get(j).getDescription().get(h).getValue()) + "</div>");
+                                                        out.write("<div style=\"float:left\">Language:&nbsp;</div>"
+                                                                + "<div class=\"edit\" id=\"" + PostBackConstants.BINDINGTEMPLATE + i + PostBackConstants.TMODELINSTANCE + k + PostBackConstants.INSTANCE + PostBackConstants.OVERVIEW + j + PostBackConstants.DESCRIPTION + h + PostBackConstants.LANG + "\">"
+                                                                + (bd.getBindingTemplates().getBindingTemplate().get(i).getTModelInstanceDetails().getTModelInstanceInfo().get(k).getInstanceDetails().getOverviewDoc().get(j).getDescription().get(h).getLang() == null ? "" : StringEscapeUtils.escapeHtml(bd.getBindingTemplates().getBindingTemplate().get(i).getTModelInstanceDetails().getTModelInstanceInfo().get(k).getInstanceDetails().getOverviewDoc().get(j).getDescription().get(h).getLang())) + "</div>");
+                                                        out.write("</div>");
+                                                    }
+                                                %>
+                                            </div>
+                                            <%
+                                                    out.write("</div>");
+                                                }
+                                            %>
+
+                                        </div>
+
+                                    </div>
+
                                 </div>
-                            </div>
+
+                                <%    } //end of instance details
+                                %>
+                            </div>                                        
                             <%
-                                    /*
-                                     out.write("<div>Add a description</div>");
-                                     for (int k = 0; k < bd.getBindingTemplates().getBindingTemplate().get(i).getDescription().size(); k++) {
-                                     out.write("lang : " + bd.getBindingTemplates().getBindingTemplate().get(i).getDescription().get(k).getLang());
-                                     out.write("value: " + bd.getBindingTemplates().getBindingTemplate().get(i).getDescription().get(k).getValue());
-                                     }
-                                     //                            bd.getBindingTemplates().getBindingTemplate().get(i).getServiceKey()*/
-                                    //    out.write("</div>");
                                 }
-                            %>
+                            %><Br>
+                            <b>Binding Template Keyed Reference Categories:</b><Br>
+
+                            <a href="javascript:AddCategoryKeyReferenceSpecific('<%=PostBackConstants.BINDINGTEMPLATE + i + PostBackConstants.CATBAG_KEY_REF%>');"><i class="icon-plus-sign"></i></a> Add Key Reference Category <Br>
+                            <div id="<%=PostBackConstants.BINDINGTEMPLATE + i + PostBackConstants.CATBAG_KEY_REF%>" style="border-width: 1px; border-style: dotted;" >
+                                <%
+                                    if (bd.getBindingTemplates().getBindingTemplate().get(i).getCategoryBag() == null) {
+                                        bd.getBindingTemplates().getBindingTemplate().get(i).setCategoryBag(new CategoryBag());
+                                    }
+                                    for (int k = 0; k < bd.getBindingTemplates().getBindingTemplate().get(i).getCategoryBag().getKeyedReference().size(); k++) {
+                                        out.write("<div id=\"" + PostBackConstants.BINDINGTEMPLATE + i + PostBackConstants.CATBAG_KEY_REF + k + "\" style=\"border-width:2px; border-style:solid\">");
+                                        out.write("<div style=\"float:left;height:100%\"><a href=\"javascript:Remove('" + PostBackConstants.BINDINGTEMPLATE + i + PostBackConstants.CATBAG_KEY_REF + k + "');\"><i class=\"icon-remove-sign\"></i></a></div>");
+                                        out.write("<div style=\"float:left\">Key: &nbsp;</div>"
+                                                + "<div class=\"edit\" id=\"" + PostBackConstants.BINDINGTEMPLATE + i + PostBackConstants.CATBAG_KEY_REF + k + "Value\">" + StringEscapeUtils.escapeHtml(bd.getBindingTemplates().getBindingTemplate().get(i).getCategoryBag().getKeyedReference().get(i).getTModelKey()) + "</div>");
+                                        out.write("<div style=\"float:left\">Name: &nbsp;</div>"
+                                                + "<div class=\"edit\" id=\"" + PostBackConstants.BINDINGTEMPLATE + i + PostBackConstants.CATBAG_KEY_REF + k + "KeyName\">" + StringEscapeUtils.escapeHtml(bd.getBindingTemplates().getBindingTemplate().get(i).getCategoryBag().getKeyedReference().get(i).getKeyName()) + "</div>");
+                                        out.write("<div style=\"float:left\">Value: &nbsp;</div>"
+                                                + "<div class=\"edit\" id=\"" + PostBackConstants.BINDINGTEMPLATE + i + PostBackConstants.CATBAG_KEY_REF + k + "KeyValue\">" + StringEscapeUtils.escapeHtml(bd.getBindingTemplates().getBindingTemplate().get(i).getCategoryBag().getKeyedReference().get(i).getKeyValue()) + "</div>");
+                                        out.write("</div>");
+                                    }
+
+                                %>
+                            </div>
+                            <br>    
+                            <b>Binding Template Keyed Reference Groups</b><br>
+                            <a href="javascript:AddCategoryKeyReferenceGroupSpecificBT('<%=PostBackConstants.BINDINGTEMPLATE + i + PostBackConstants.CATBAG_KEY_REF_GRP%>');"><i class="icon-plus-sign"></i></a> Add Key Reference Group Category<br>
+                            <div id="<%=PostBackConstants.BINDINGTEMPLATE + i + PostBackConstants.CATBAG_KEY_REF_GRP%>" style="border-width: 1px; border-style: dotted;" >
+
+                                <%
+                                    for (int z = 0; z < bd.getBindingTemplates().getBindingTemplate().get(i).getCategoryBag().getKeyedReferenceGroup().size(); z++) {
+
+                                        out.write("<div id=\"" + PostBackConstants.BINDINGTEMPLATE + i + PostBackConstants.CATBAG_KEY_REF_GRP + z + "\" style=\"border-width:2px; border-style:solid\">"
+                                                + "<div style=\"float:left;height:100%\"><a href=\"javascript:Remove('" + PostBackConstants.BINDINGTEMPLATE + i + PostBackConstants.CATBAG_KEY_REF_GRP + z + "');\"><i class=\"icon-remove-sign\"></i></a></div>"
+                                                + "<div style=\"float:left\">Key: &nbsp;</div>"
+                                                + "<div class=\"edit\" id=\"" + PostBackConstants.BINDINGTEMPLATE + i + PostBackConstants.CATBAG_KEY_REF_GRP + z + "Value\"></div>"
+                                                + "<div id=\"catbaggrpkeyref" + i + "keyref\" style=\"border-width:1px; border-style:solid\">"
+                                                + "<div style=\"float:left;height:100%\"><a href=\"javascript:AddCategoryKeyReferenceSpecific('" + PostBackConstants.BINDINGTEMPLATE + i + PostBackConstants.CATBAG_KEY_REF_GRP + z + "keyref');\"><i class=\"icon-plus-sign\"></i></a></div>"
+                                                + "Add Key Reference"
+                                                + "</div>");
+                                        for (int k = 0; k < bd.getBindingTemplates().getBindingTemplate().get(i).getCategoryBag().getKeyedReferenceGroup().get(z).getKeyedReference().size(); k++) {
+
+                                            out.write("<div id=\"" + PostBackConstants.BINDINGTEMPLATE + i + PostBackConstants.CATBAG_KEY_REF_GRP + z + "keyref" + k + "\" style=\"border-width:1px; border-style:solid\">");
+                                            out.write("<div style=\"float:left;height:100%\"><a href=\"javascript:Remove('" + PostBackConstants.BINDINGTEMPLATE + i + PostBackConstants.CATBAG_KEY_REF_GRP + z + "keyref" + k + "');\"><i class=\"icon-remove-sign\"></i></a></div>");
+                                            out.write("<div style=\"float:left\">Key: &nbsp;</div>"
+                                                    + "<div class=\"edit\" id=\"" + PostBackConstants.BINDINGTEMPLATE + i + PostBackConstants.CATBAG_KEY_REF_GRP + z + "keyref" + k + "Value\">" + StringEscapeUtils.escapeHtml(bd.getBindingTemplates().getBindingTemplate().get(i).getCategoryBag().getKeyedReferenceGroup().get(z).getKeyedReference().get(k).getTModelKey()) + "</div>");
+                                            out.write("<div style=\"float:left\">Name: &nbsp;</div>"
+                                                    + "<div class=\"edit\" id=\"" + PostBackConstants.BINDINGTEMPLATE + i + PostBackConstants.CATBAG_KEY_REF_GRP + z + "keyref" + k + "KeyName\">" + StringEscapeUtils.escapeHtml(bd.getBindingTemplates().getBindingTemplate().get(i).getCategoryBag().getKeyedReferenceGroup().get(z).getKeyedReference().get(k).getKeyName()) + "</div>");
+                                            out.write("<div style=\"float:left\">Value: &nbsp;</div>"
+                                                    + "<div class=\"edit\" id=\"" + PostBackConstants.BINDINGTEMPLATE + i + PostBackConstants.CATBAG_KEY_REF_GRP + z + "keyref" + k + "KeyValue\">" + StringEscapeUtils.escapeHtml(bd.getBindingTemplates().getBindingTemplate().get(i).getCategoryBag().getKeyedReferenceGroup().get(z).getKeyedReference().get(k).getKeyValue()) + "</div>");
+                                            out.write("</div>");
+                                        }
+                                        out.write("</div>");
+                                    }
+                                %>
+                            </div>
                         </div>
+                        <%
 
-                    </div>
+                            } //end of binding templates loop
+                        %>
 
 
+                        <%//end of tmodel instance%>
+
+                    </div>
+                    <%//end of binding tempaltes container%>
+
                 </div>
+
+
+
                 <div class="tab-pane" id="signatures">
+                    <br>
                     <%
-                        out.write("This service is " + (bd.getSignature().isEmpty() ? "not" : "") + " signed.");
+                        if (bd.getSignature().isEmpty()) {
+                            out.write("This item is not digitally signed.");
+                        } else {
+                            out.write("This item is digitally signed " + bd.getSignature().size());
+                    %>
+                    <table class="table">
 
 
-                    %>
+                        <%
+                                for (int k = 0; k < bd.getSignature().size(); k++) {
+                                    out.write("<tr><td>");
+                                    out.write(x.SignatureToReadable(bd.getSignature().get(k)));
+                                    out.write("</td><td>");
+                                    out.write("<a href=\"ajax/getCert.jsp?type=service&id=" + URLEncoder.encode(bd.getServiceKey(), "UTF-8") + "&index=" + k + "\">View Certificate</a>");
+                                    out.write("</td></tr>");
+                                }
+                            }
+
+                        %>
+                    </table>
                 </div>
 
+                <div class="tab-pane" id="opinfo">
+                    <script type="text/javascript">
+                        $.get("ajax/opInfo.jsp?id=<%=StringEscapeUtils.escapeJavaScript(bd.getServiceKey())   %>", function(data){
+                            $("#opinfodiv").html(data);
+                        } )
+                    </script>
+                    <div id="opinfodiv"></div>
+
+                </div>
             </div>
-            <script type="text/javascript">
-                var currentDescriptionSpecific=<%=totalBTDescriptions%>;
-            </script>
-            <Br><br>
-            <a class="btn btn-primary " href="javascript:saveService();">Save</a> | 
-            <a class="btn btn-danger " href="javascript:deleteService();">Delete</a> |
-            <a class="btn btn-success " href="#"">Digitally Sign</a>
-            <script type="text/javascript" src="js/businessEditor.js"></script>
-            <script type="text/javascript" src="js/serviceEditor.js"></script>
         </div>
+        <script type="text/javascript">
+            var currentDescriptionSpecific=<%=totalBTDescriptions%>;
+        </script>
+        <Br><br>
+        <%
+            if (bd.getSignature().isEmpty()) {
+        %>
+        <a class="btn btn-primary " href="javascript:saveService();">Save</a> | 
+        <%  } else {
+        %>
+        <a href="#confirmDialog" role="button" class="btn btn-primary" data-toggle="modal">Save</a> |
+
+        <%        }
+            //        <a class="btn btn-primary " href="javascript:saveService();">Save</a> | 
+%>
 
-    </div>
 
+        <a class="btn btn-danger " href="javascript:deleteService();">Delete</a> |
+        <a class="btn btn-success " href="#"">Digitally Sign</a> |
+        <a class="btn btn-info " href="#" title="Alert me when this entity changes">Subscribe</a> |
+        <a class="btn btn-warning " href="#" title="Transfer this entity to another UDDI node">Transfer</a>
+    </div>
+    <script type="text/javascript" src="js/businessEditor.js"></script>
+    <script type="text/javascript" src="js/serviceEditor.js"></script>
+    <div class="modal hide fade" id="confirmDialog">
+        <div class="modal-header">
+            <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
+            <h3>Digital Signature Warning</h3>
+        </div>
+        <div class="modal-body">
+            <p>This item is digitally signed. This means that when saving your changes, all existing signatures will become invalid and 
+                will automatically be excluded from the save process. </p>
+        </div>
+        <div class="modal-footer">
+            <a href="#" class="btn">Close</a>
+            <a href="javascript:saveService();$('#confirmDialog').modal('hide');" class="btn btn-primary">Save changes</a>
+        </div>
+    </div>
     <!-- container div is in header bottom-->
     <%@include file="header-bottom.jsp" %>
\ No newline at end of file

Modified: juddi/branches/juddi-3.2.x/juddi-gui/web/tmodelBrowse.jsp
URL: http://svn.apache.org/viewvc/juddi/branches/juddi-3.2.x/juddi-gui/web/tmodelBrowse.jsp?rev=1462384&r1=1462383&r2=1462384&view=diff
==============================================================================
--- juddi/branches/juddi-3.2.x/juddi-gui/web/tmodelBrowse.jsp (original)
+++ juddi/branches/juddi-3.2.x/juddi-gui/web/tmodelBrowse.jsp Fri Mar 29 02:43:36 2013
@@ -4,7 +4,7 @@
     Author     : Alex O'Ree
 --%>
 
-<%@page import="org.apache.juddi.webconsole.UddiHub"%>
+<%@page import="org.apache.juddi.webconsole.hub.UddiHub"%>
 
 <%@page contentType="text/html" pageEncoding="UTF-8"%>
 <%@include file="header-top.jsp" %>

Modified: juddi/branches/juddi-3.2.x/juddi-gui/web/tmodelEditor.jsp
URL: http://svn.apache.org/viewvc/juddi/branches/juddi-3.2.x/juddi-gui/web/tmodelEditor.jsp?rev=1462384&r1=1462383&r2=1462384&view=diff
==============================================================================
--- juddi/branches/juddi-3.2.x/juddi-gui/web/tmodelEditor.jsp (original)
+++ juddi/branches/juddi-3.2.x/juddi-gui/web/tmodelEditor.jsp Fri Mar 29 02:43:36 2013
@@ -6,13 +6,10 @@
 
 
 
-<%@page import="org.uddi.api_v3.Description"%>
-<%@page import="org.uddi.api_v3.Name"%>
-<%@page import="org.uddi.api_v3.CategoryBag"%>
-<%@page import="org.uddi.api_v3.IdentifierBag"%>
+<%@page import="java.net.URLEncoder"%>
+<%@page import="org.uddi.api_v3.*"%>
 <%@page import="org.apache.juddi.webconsole.PostBackConstants"%>
-<%@page import="org.uddi.api_v3.TModel"%>
-<%@page import="org.uddi.api_v3.TModelDetail"%>
+<%@page import="org.apache.juddi.webconsole.hub.*"%>
 <%@page import="org.apache.juddi.query.FindBusinessByNameQuery"%>
 <%@page contentType="text/html" pageEncoding="UTF-8"%>
 <%@include file="header-top.jsp" %>
@@ -27,7 +24,7 @@
     <div class="row">
         <div class="span12">
             <p>
-                <%                    
+                <%
                     UddiHub x = UddiHub.getInstance(application, session);
                     TModel bd = hub.getTmodelDetails(request.getParameter("id"));
                     boolean newitem = false;
@@ -76,12 +73,12 @@
                     
                 var currentDescriptionEntries=<%=bd.getDescription().size()%>;
                 var currentOverviewDocs=<%=bd.getOverviewDoc().size()%>;
-                <%                    
+                <%
                     int currentDescriptionSpecific = 0;
                     for (int i = 0; i < bd.getOverviewDoc().size(); i++) {
                         currentDescriptionSpecific += bd.getOverviewDoc().get(i).getDescription().size();
                     }
-                    
+
                     int currentcatkeyref = 0;
                     if (bd.getCategoryBag() != null) {
                         currentcatkeyref = bd.getCategoryBag().getKeyedReference().size();
@@ -97,30 +94,30 @@
             </script>
             <div class="tab-content">
                 <div class="tab-pane active" id="general">
-                    <%                        
+                    <%
                         if (!newitem) {
                             out.write("<i class=\"icon-lock\"></i>");
                         }
                     %>
                     The tModel Key is the unique identifier. If you specify a tModel, it must be prefixed with
                     an existing partition (key generator), other one is generated for you.
-                    
-                    <div style="border-width: 2px; border-style: solid;" <%                        
+
+                    <div style="border-width: 2px; border-style: solid;" <%
                         if (!newitem) {
                             out.write("class=\"noedit\"");
                         } else {
                             out.write("class=\"edit\"");
                         }
                          %>
-                         id="<%=PostBackConstants.SERVICEKEY%>"><%                            
-                            out.write(StringEscapeUtils.escapeHtml(bd.getTModelKey()));
+                         id="<%=PostBackConstants.SERVICEKEY%>"><%
+                             out.write(StringEscapeUtils.escapeHtml(bd.getTModelKey()));
                         %></div><br>
 
 
                     Name - The name describes this tModel. It is a required field.
 
-                    <%                        
-                        
+                    <%
+
                         if (bd.getName() == null) {
                             bd.setName(new Name());
                         }
@@ -132,15 +129,15 @@
                                 + "<div class=\"edit\" id=\"" + PostBackConstants.NAME + PostBackConstants.LANG + "\">"
                                 + ((bd.getName().getLang() == null ? " " : StringEscapeUtils.escapeHtml(bd.getName().getLang())))
                                 + "</div>");
-                        
+
                         out.write("</div>");
-                        
+
                     %>
 
                     <Br>
                     <a href="javascript:AddDescription();"><i class="icon-plus-sign"></i></a> Description - businesses can have more than one description, such as in a different language.
                     <div id="Description" style="border-width: 2px; border-style: solid;" >
-                        <%                            
+                        <%
                             if (bd.getDescription() != null) //bd.(new Description());
                             {
                                 for (int i = 0; i < bd.getDescription().size(); i++) {
@@ -153,7 +150,7 @@
                                             + (bd.getDescription().get(i).getLang() != null
                                             ? StringEscapeUtils.escapeHtml(bd.getDescription().get(i).getLang()) : "")
                                             + "</div>");
-                                    
+
                                     out.write("</div>");
                                 }
                             }
@@ -163,7 +160,7 @@
 
                 <div class="tab-pane " id="discovery">
                     <a href="javascript:AddOverviewDocument();"><i class="icon-plus-sign"></i></a>Overview Documents - These are typically URLs to web pages that describe this tModel's details and usage scenarios.
-                    <%                        
+                    <%
                         out.write("<div id=\"" + PostBackConstants.OVERVIEW + "\" style=\"border-width:2px; border-style:solid\">");
                         for (int i = 0; i < bd.getOverviewDoc().size(); i++) {
                             out.write("<div id=\"" + PostBackConstants.OVERVIEW + i + "\" style=\"border-width:1px; border-style:solid\">");
@@ -172,11 +169,11 @@
                                     + "<div class=\"edit\" id=\"" + PostBackConstants.OVERVIEW + i + PostBackConstants.VALUE + "\">" + StringEscapeUtils.escapeHtml(bd.getOverviewDoc().get(i).getOverviewURL().getValue()) + "</div>");
                             out.write("<div style=\"float:left\">Use type:&nbsp;</div>"
                                     + "<div class=\"edit\" id=\"" + PostBackConstants.OVERVIEW + i + PostBackConstants.TYPE + "\">" + StringEscapeUtils.escapeHtml(bd.getOverviewDoc().get(i).getOverviewURL().getUseType()) + "</div>");
-                            
+
                     %>
 
                     <a href="javascript:AddDescriptionSpecific('<%=PostBackConstants.OVERVIEW + i + PostBackConstants.DESCRIPTION%> ');"><i class="icon-plus-sign"></i></a> Add a description
-                    <%                            
+                    <%
                             out.write("<div id=\"" + PostBackConstants.OVERVIEW + i + PostBackConstants.DESCRIPTION + "\" style=\"border-width:1px; border-style:dotted\">");
                             for (int k = 0; k < bd.getOverviewDoc().get(i).getDescription().size(); k++) {
                                 out.write("<div id=\"" + PostBackConstants.OVERVIEW + i + PostBackConstants.DESCRIPTION + k + "\" style=\"border-width:1px; border-style:solid\">");
@@ -191,7 +188,7 @@
                             out.write("</div>");//end this block
                         }
                         out.write("</div>");//end of overview
-                        %>
+%>
 
                 </div>
 
@@ -200,13 +197,13 @@
 
                     <a href="javascript:AddCategoryKeyReference();"><i class="icon-plus-sign"></i></a> Add Key Reference Category <Br>
                     <div id="catContainer" style="border-width: 2px; border-style: solid;" >
-                        <%                            
+                        <%
                             if (bd.getCategoryBag() == null) {
                                 bd.setCategoryBag(new CategoryBag());
                             }
                             //                        out.write("Keyed Reference Categories:");
                             for (int i = 0; i < bd.getCategoryBag().getKeyedReference().size(); i++) {
-                                
+
                                 out.write("<div id=\"catbagkeyref" + i + "\" style=\"border-width:2px; border-style:solid\">");
                                 out.write("<div style=\"float:left;height:100%\"><a href=\"javascript:Remove('catbagkeyref" + i + "');\"><i class=\"icon-remove-sign\"></i></a></div>");
                                 out.write("<div style=\"float:left\">Key: &nbsp;</div>"
@@ -225,7 +222,7 @@
                     Identifiers - optionally, you can attach identifiers that uniquely identify this business from other systems, such as a tax ID or a <a href="http://www.whitehouse.gov/sites/default/files/omb/grants/duns_num_guide.pdf">DUNS Number</a>.<Br>
                     <a href="javascript:AddIdentKeyReference();"><i class="icon-plus-sign"></i></a> Add Key Reference Category <Br>
                     <div id="identContainer" style="border-width: 2px; border-style: solid;" >
-                        <%                            
+                        <%
                             if (bd.getIdentifierBag() == null) {
                                 bd.setIdentifierBag(new IdentifierBag());
                             }
@@ -245,19 +242,34 @@
                 </div>
                 <div class="tab-pane " id="signatures">
 
-                    <%                        
-                        if (bd.getSignature().isEmpty()) {
-                            out.write("This item is not signed");
-                        } else {
-                            out.write("This item is signed by " + bd.getSignature().size());
-                        }
-                        
-                    %>
+                   <%
+                            if (bd.getSignature().isEmpty()) {
+                                out.write("This item is not digitally signed.");
+                            } else {
+                                out.write("This item is digitally signed " + bd.getSignature().size());
+                        %>
+                        <table class="table">
+
+
+                            <%
+                                    for (int k = 0; k < bd.getSignature().size(); k++) {
+                                        out.write("<tr><td>");
+                                        out.write(x.SignatureToReadable(bd.getSignature().get(k)));
+                                        out.write("</td><td>");
+                                        out.write("<a href=\"ajax/getCert.jsp?type=tmodel&id=" + URLEncoder.encode(bd.getTModelKey(), "UTF-8") + "&index=" + k + "\">View Certificate</a>");
+                                        out.write("</td></tr>");
+                                    }
+                                }
+
+                            %>
+                        </table>
                 </div>
                 <div><br>
                     <a class="btn btn-primary " href="javascript:savetModel();">Save</a> | 
                     <a class="btn btn-danger " href="javascript:deletetModel();">Delete</a> |
-                    <a class="btn btn-success " href="#"">Digitally Sign</a>
+                    <a class="btn btn-success " href="#"">Digitally Sign</a> |
+                    <a class="btn btn-info " href="#" title="Alert me when this entity changes">Subscribe</a> |
+                    <a class="btn btn-warning " href="#" title="Transfer this entity to another UDDI node">Transfer</a>
                 </div>
             </div>
             <script src="js/tmodeledit.js"></script>

Modified: juddi/branches/juddi-3.2.x/juddi-gui/web/tmodelPartitions.jsp
URL: http://svn.apache.org/viewvc/juddi/branches/juddi-3.2.x/juddi-gui/web/tmodelPartitions.jsp?rev=1462384&r1=1462383&r2=1462384&view=diff
==============================================================================
--- juddi/branches/juddi-3.2.x/juddi-gui/web/tmodelPartitions.jsp (original)
+++ juddi/branches/juddi-3.2.x/juddi-gui/web/tmodelPartitions.jsp Fri Mar 29 02:43:36 2013
@@ -5,7 +5,7 @@
 --%>
 
 
-<%@page import="org.apache.juddi.webconsole.UddiHub"%>
+<%@page import="org.apache.juddi.webconsole.hub.UddiHub"%>
 <%@page contentType="text/html" pageEncoding="UTF-8"%>
 <%@include file="header-top.jsp" %>
 <div class="container">



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@juddi.apache.org
For additional commands, e-mail: commits-help@juddi.apache.org


Mime
View raw message