You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@juddi.apache.org by al...@apache.org on 2014/01/25 17:43:38 UTC
svn commit: r1561339 [2/5] - in /juddi/trunk/juddi-gui/src/main:
java/org/apache/juddi/webconsole/hub/UddiHub.java webapp/ajax/switch.jsp
webapp/businessEditor2.jsp webapp/header-bottom.jsp
webapp/serviceEditor.jsp webapp/tmodelEditor.jsp
Modified: juddi/trunk/juddi-gui/src/main/webapp/businessEditor2.jsp
URL: http://svn.apache.org/viewvc/juddi/trunk/juddi-gui/src/main/webapp/businessEditor2.jsp?rev=1561339&r1=1561338&r2=1561339&view=diff
==============================================================================
--- juddi/trunk/juddi-gui/src/main/webapp/businessEditor2.jsp (original)
+++ juddi/trunk/juddi-gui/src/main/webapp/businessEditor2.jsp Sat Jan 25 16:43:37 2014
@@ -17,692 +17,697 @@
<%@include file="header-top.jsp" %>
<div class="container">
- <!-- Main hero unit for a primary marketing message or call to action -->
- <div class="well" >
- <h1><%=ResourceLoader.GetResource(session, "pages.businesseditor.title")%></h1>
- </div>
-
- <!-- Example row of columns -->
- <div class="row">
- <div class="span12" >
- <script type="text/javascript" src="js/businessEditor.js"></script>
- <div id="businesseditor">
- <%
- boolean newitem = false;
-
- UddiHub x = UddiHub.getInstance(application, request.getSession());
- String bizid = request.getParameter("id");
- if (bizid == null || bizid.isEmpty()) {
- //response.sendRedirect("browse.jsp");
- newitem = true;
- }
-
- BusinessEntity bd = null;
- if (!newitem) {
- bd = x.GetBusinessDetails(bizid);
- } else {
- bd = new BusinessEntity();
- }
- if (bd == null) {
- bd = new BusinessEntity();
- newitem = true;
- }
-
- %>
- <%
-
- if (!newitem) {
- out.write("<i class=\"icon-lock icon-large\"></i>");
- }
- %>
- <b><%=ResourceLoader.GetResource(session, "pages.businesskey")%></b>-
- <%=ResourceLoader.GetResource(session, "pages.businesskey.description")%>
- <a href="javascript:ShowKeyHelp();"><i class="icon-question-sign icon-large"></i> <%=ResourceLoader.GetResource(session, "navbar.help")%></a>
- <br>
- <div style="border-width: 2px; border-style: solid;" class="<%
-
- if (newitem) {
- out.write("edit");
- } else {
- out.write("noedit");
- }
-
- %>" id="<%=PostBackConstants.BUSINESSKEY%>">
- <%
- if (!newitem) {
- out.write(StringEscapeUtils.escapeHtml(bd.getBusinessKey()));
+ <!-- Main hero unit for a primary marketing message or call to action -->
+ <div class="well" >
+ <h1><%=ResourceLoader.GetResource(session, "pages.businesseditor.title")%></h1>
+ </div>
+
+ <!-- Example row of columns -->
+ <div class="row">
+ <div class="span12" >
+ <script type="text/javascript" src="js/businessEditor.js"></script>
+ <div id="businesseditor">
+ <%
+ boolean newitem = false;
+
+ UddiHub x = UddiHub.getInstance(application, request.getSession());
+ String bizid = request.getParameter("id");
+ if (bizid == null || bizid.isEmpty()) {
+ //response.sendRedirect("browse.jsp");
+ newitem = true;
+ }
+
+ BusinessEntity bd = null;
+ if (!newitem) {
+ bd = x.GetBusinessDetails(bizid);
+ } else {
+ bd = new BusinessEntity();
+ }
+ if (bd == null) {
+ bd = new BusinessEntity();
+ newitem = true;
+ }
+
+ %>
+ <% if (!newitem) {
+ out.write("<i class=\"icon-lock icon-large\"></i>");
+ }
+ %>
+ <b><%=ResourceLoader.GetResource(session, "pages.businesskey")%></b>-
+ <%=ResourceLoader.GetResource(session, "pages.businesskey.description")%>
+ <a href="javascript:ShowKeyHelp();"><i class="icon-question-sign icon-large"></i> <%=ResourceLoader.GetResource(session, "navbar.help")%></a>
+ <br>
+ <div style="border-width: 2px; border-style: solid;" class="<%
+
+ if (newitem) {
+ out.write("edit");
+ } else {
+ out.write("noedit");
+ }
+
+ %>" id="<%=PostBackConstants.BUSINESSKEY%>">
+ <%
+ if (!newitem) {
+ out.write(StringEscapeUtils.escapeHtml(bd.getBusinessKey()));
+ }
+ if (bd.getContacts() == null) {
+ bd.setContacts(new Contacts());
+ }
+ if (bd.getCategoryBag() == null) {
+ bd.setCategoryBag(new CategoryBag());
+ }
+ if (bd.getIdentifierBag() == null) {
+ bd.setIdentifierBag(new IdentifierBag());
+ }
+ %></div><br>
+
+ <script type="text/javascript">
+ var currentNameEntries =<%= bd.getName().size() - 1%>;
+ var currentDisco =<%= bd.getContacts().getContact().size() - 1%>;
+ var currentDescriptionEntries =<%= bd.getDescription().size() - 1%>;
+ var currentContacts =<%= bd.getContacts().getContact().size() - 1%>;
+ var currentcatkeyref =<%=bd.getCategoryBag().getKeyedReference().size()%>;
+ var currentcatkeyrefgrp =<%=bd.getCategoryBag().getKeyedReferenceGroup().size()%>;
+ var currentident =<%=bd.getIdentifierBag().getKeyedReference().size()%>;
+ </script>
+
+ <ul class="nav nav-tabs" id="myTab">
+ <li class="active"><a href="#general"><%=ResourceLoader.GetResource(session, "pages.editor.tabnav.general")%></a></li>
+
+ <li><a href="#discovery" ><%=ResourceLoader.GetResource(session, "pages.editor.tabnav.discovery")%></a></li>
+ <li><a href="#contacts" ><%=ResourceLoader.GetResource(session, "pages.editor.tabnav.contacts")%></a></li>
+ <li><a href="#categories" ><%=ResourceLoader.GetResource(session, "pages.editor.tabnav.categories")%></a></li>
+
+ <li><a href="#identifiers" ><%=ResourceLoader.GetResource(session, "pages.editor.tabnav.identifiers")%></a></li>
+ <li><a href="#services" ><%=ResourceLoader.GetResource(session, "pages.editor.tabnav.services")%></a></li>
+ <li><a href="#signatures" id="sigtagheader"><%=ResourceLoader.GetResource(session, "pages.editor.tabnav.signatures")%></a></li>
+
+ <li><a href="#opinfo" ><%=ResourceLoader.GetResource(session, "pages.editor.tabnav.opinfo")%></a></li>
+ <li><a href="#relations" ><%=ResourceLoader.GetResource(session, "pages.editor.tabnav.relatedbusinesses")%></a></li>
+ </ul>
+ <script>
+ $(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=#contacts]').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=#services]').click(function(e) {
+ e.preventDefault();
+ $(this).tab('show');
+ });
+ $('#myTab a[href=#signatures]').click(function(e) {
+ e.preventDefault();
+ $(this).tab('show');
+ });
+ $('#myTab a[href=#opinfo]').click(function(e) {
+ e.preventDefault();
+ $(this).tab('show');
+ });
+ $('#myTab a[href=#relations]').click(function(e) {
+ e.preventDefault();
+ $(this).tab('show');
+ });
+
+ </script>
+ <div class="tab-content">
+ <div class="tab-pane active" id="general">
+ <a href="javascript:AddName();"><i class="icon-plus-sign icon-large"></i></a> <b><%=ResourceLoader.GetResource(session, "items.name")%></b> -
+ <%=ResourceLoader.GetResource(session, "items.business.name.description")%>
+
+ <div id="nameContainer" style="border-width: 2px; border-style: solid;" >
+ <%
+ for (int i = 0; i < bd.getName().size(); i++) {
+ out.write("<div id=\"" + PostBackConstants.NAME + i + "\" style=\"border-width:1px; border-style:solid\" >");
+ out.write("<div style=\"float:left; height:100%\"><a href=\"javascript:Remove('Name" + i + "');\"><i class=\"icon-trash icon-large\"></i></a></div>");
+ out.write("<div style=\"float:left\"> " + ResourceLoader.GetResource(session, "items.value") + ": </div>"
+ + "<div class=\"edit\" id=\"" + PostBackConstants.NAME + i + PostBackConstants.VALUE + "\">" + (bd.getName().get(i).getValue() != null ? StringEscapeUtils.escapeHtml(bd.getName().get(i).getValue()) : "") + "</div>");
+ out.write("<div style=\"float:left\">" + ResourceLoader.GetResource(session, "items.lang") + " </div>"
+ + "<div class=\"edit\" id=\"" + PostBackConstants.NAME + i + PostBackConstants.LANG + "\">");
+ if (bd.getName().get(i).getLang() != null) {
+ out.write(StringEscapeUtils.escapeHtml(bd.getName().get(i).getLang()));
+ }
+ out.write("</div>");
+
+ out.write("</div>");
+ }
+ %>
+ </div>
+ <Br>
+ <a href="javascript:AddDescription();"><i class="icon-plus-sign icon-large"></i></a> <b><%=ResourceLoader.GetResource(session, "items.description")%> </b>-
+ <%=ResourceLoader.GetResource(session, "items.businesses.description")%>.
+ <div id="Description" style="border-width: 2px; border-style: solid;" >
+ <%
+ 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-trash icon-large\"></i></a></div>");
+ out.write("<div style=\"float:left\">" + ResourceLoader.GetResource(session, "items.value") + ": </div>"
+ + "<div class=\"edit\" id=\"" + PostBackConstants.DESCRIPTION + i + PostBackConstants.VALUE + "\">" + StringEscapeUtils.escapeHtml(bd.getDescription().get(i).getValue()) + "</div>");
+ out.write("<div style=\"float:left\">" + ResourceLoader.GetResource(session, "items.lang") + ": </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:AddDisco();"><i class="icon-plus-sign icon-large"></i></a>
+ <b><%=ResourceLoader.GetResource(session, "items.discoveryurl")%></b>- <%=ResourceLoader.GetResource(session, "items.discoveryurl.description")%>
+ <div id="discoContainer" style="border-width: 2px; border-style: solid;" >
+ <%
+ if (bd.getDiscoveryURLs() != null) {
+ for (int i = 0; i < bd.getDiscoveryURLs().getDiscoveryURL().size(); i++) {
+
+ out.write("<div id=\"disco" + i + "\" style=\"border-width:1px; border-style:solid\">");
+ out.write("<div style=\"float:left;height:100%\"><a href=\"javascript:Remove('disco" + i + "');\"><i class=\"icon-trash icon-large\"></i></a></div>");
+ out.write("<div style=\"float:left\">" + ResourceLoader.GetResource(session, "items.value") + ": </div>"
+ + "<div class=\"edit\" id=\"" + PostBackConstants.DISCOVERYURL + i + PostBackConstants.VALUE + "\">" + StringEscapeUtils.escapeHtml(bd.getDiscoveryURLs().getDiscoveryURL().get(i).getValue()) + "</div>");
+ out.write("<div style=\"float:left\">" + ResourceLoader.GetResource(session, "items.type") + ": </div>"
+ + "<div class=\"edit\" id=\"" + PostBackConstants.DISCOVERYURL + i + PostBackConstants.TYPE + "\">" + StringEscapeUtils.escapeHtml(bd.getDiscoveryURLs().getDiscoveryURL().get(i).getUseType()) + "</div>");
+
+ out.write("</div>");
+
+ }
}
+
+ %>
+ </div>
+ </div>
+ <div class="tab-pane " id="contacts">
+ <a href="javascript:AddContact();"><i class="icon-plus-sign icon-large"></i></a>
+ <b><%=ResourceLoader.GetResource(session, "items.contacts")%></b>-
+ <%=ResourceLoader.GetResource(session, "items.contacts.description")%><br>
+
+ <div id="contactsContainer" style="border-width: 2px; border-style: solid;" >
+ <%
if (bd.getContacts() == null) {
- bd.setContacts(new Contacts());
+ bd.setContacts(new Contacts());
}
+ for (int i = 0; i < bd.getContacts().getContact().size(); i++) {
+ //this is the outer framework, the add buttons
+ out.write("<div id=\"" + PostBackConstants.CONTACT_PREFIX + i + "\" style=\"border-width:2px; border-style:solid; border-color:red\" >"
+ + "<div style=\"float:left;height:100%\"><a href=\"javascript:Remove('" + PostBackConstants.CONTACT_PREFIX + i
+ + "');\"><i class=\"icon-trash icon-large\"></i></a></div>"
+ + "<div style=\"float:left\">" + ResourceLoader.GetResource(session, "items.contact.type") + ": </div>"
+ + "<div class=\"edit\" id=\"" + PostBackConstants.CONTACT_PREFIX + i + PostBackConstants.TYPE + "\">"
+ + StringEscapeUtils.escapeHtml(bd.getContacts().getContact().get(i).getUseType())
+ + "</div>"
+ + "<a href=\"javascript:AddContactName('" + i + "');\"><i class=\"icon-plus-sign icon-large\"></i></a>" + ResourceLoader.GetResource(session, "items.name") + "  "
+ + "<a href=\"javascript:AddContactEmail('" + i + "');\"><i class=\"icon-plus-sign icon-large\"></i></a>" + ResourceLoader.GetResource(session, "items.email") + "  "
+ + "<a href=\"javascript:AddContactDescription('" + i + "');\"><i class=\"icon-plus-sign icon-large\"></i></a>" + ResourceLoader.GetResource(session, "items.description") + "  "
+ + "<a href=\"javascript:AddContactPhone('" + i + "');\"><i class=\"icon-plus-sign icon-large\"></i></a>" + ResourceLoader.GetResource(session, "items.phone") + "  "
+ + "<a href=\"javascript:AddContactAddress('" + i + "');\"><i class=\"icon-plus-sign icon-large\"></i></a>" + ResourceLoader.GetResource(session, "items.address") + "  ");
+ int contactid = i;
+ //person name
+ for (int k = 0; k < bd.getContacts().getContact().get(i).getPersonName().size(); k++) {
+
+ int contactname = k;
+ out.write("<div id=\"" + PostBackConstants.CONTACT_PREFIX + contactid + PostBackConstants.NAME + contactname + "\" style=\"border-width:1px; border-style:solid\" >"
+ + "<div style=\"float:left;height:100%\"><a href=\"javascript:Remove('" + PostBackConstants.CONTACT_PREFIX + contactid + PostBackConstants.NAME + contactname
+ + "');\"><i class=\"icon-trash icon-large\"></i></a></div>"
+ + "<div style=\"float:left\">" + ResourceLoader.GetResource(session, "items.name") + ": </div>"
+ + "<div class=\"edit\" id=\"" + PostBackConstants.CONTACT_PREFIX + contactid + PostBackConstants.NAME + contactname + PostBackConstants.VALUE + "\">"
+ + StringEscapeUtils.escapeHtml(bd.getContacts().getContact().get(i).getPersonName().get(k).getValue()) + "</div>"
+ + "<div style=\"float:left\">" + ResourceLoader.GetResource(session, "items.lang") + ": </div>"
+ + "<div class=\"edit\" id=\"" + PostBackConstants.CONTACT_PREFIX + contactid + PostBackConstants.NAME + contactname + PostBackConstants.LANG + "\">"
+ + (bd.getContacts().getContact().get(i).getPersonName().get(k).getLang() == null ? ""
+ : StringEscapeUtils.escapeHtml(bd.getContacts().getContact().get(i).getPersonName().get(k).getLang())) + "</div>"
+ + "</div>");
+ // + "</div>");
+ }
+ //email
+ for (int k = 0; k < bd.getContacts().getContact().get(i).getEmail().size(); k++) {
+ int contactemail = k;
+ out.write("<div id=\"" + PostBackConstants.CONTACT_PREFIX + contactid + PostBackConstants.EMAIL + contactemail + "\" style=\"border-width:1px; border-style:solid\" >"
+ + "<div style=\"float:left;height:100%\"><a href=\"javascript:Remove('" + PostBackConstants.CONTACT_PREFIX + contactid + PostBackConstants.EMAIL + contactemail
+ + "');\"><i class=\"icon-trash icon-large\"></i></a></div>"
+ + "<div style=\"float:left\">" + ResourceLoader.GetResource(session, "items.type") + ": </div>"
+ + "<div class=\"edit\" id=\"" + PostBackConstants.CONTACT_PREFIX + contactid + PostBackConstants.EMAIL + contactemail + PostBackConstants.TYPE + "\">"
+ + StringEscapeUtils.escapeHtml(bd.getContacts().getContact().get(i).getEmail().get(k).getUseType())
+ + "</div>"
+ + "<div style=\"float:left\">" + ResourceLoader.GetResource(session, "items.value") + ": </div>"
+ + "<div class=\"edit\" id=\"" + PostBackConstants.CONTACT_PREFIX + contactid + PostBackConstants.EMAIL + contactemail + PostBackConstants.VALUE + "\">"
+ + StringEscapeUtils.escapeHtml(bd.getContacts().getContact().get(i).getEmail().get(k).getValue()) + "</div>"
+ + "</div>");
+ }
+ //out.write("</div>");
+ //contact description
+ for (int k = 0; k < bd.getContacts().getContact().get(i).getDescription().size(); k++) {
+ int contactdescription = k;
+ out.write("<div id=\"" + PostBackConstants.CONTACT_PREFIX + contactid + PostBackConstants.DESCRIPTION + contactdescription + "\" style=\"border-width:1px; border-style:solid\" >"
+ + "<div style=\"float:left;height:100%\"><a href=\"javascript:Remove('" + PostBackConstants.CONTACT_PREFIX + contactid + PostBackConstants.DESCRIPTION + contactdescription
+ + "');\"><i class=\"icon-trash icon-large\"></i></a></div>"
+ + "<div style=\"float:left\">" + ResourceLoader.GetResource(session, "items.description") + ": </div>"
+ + "<div class=\"edit\" id=\"" + PostBackConstants.CONTACT_PREFIX + contactid + PostBackConstants.DESCRIPTION + contactdescription + PostBackConstants.VALUE + "\">"
+ + StringEscapeUtils.escapeHtml(bd.getContacts().getContact().get(i).getDescription().get(k).getValue())
+ + "</div>"
+ + "<div style=\"float:left\">" + ResourceLoader.GetResource(session, "items.lang") + ": </div>"
+ + "<div class=\"edit\" id=\"" + PostBackConstants.CONTACT_PREFIX + contactid + PostBackConstants.DESCRIPTION + contactdescription + PostBackConstants.LANG + "\">"
+ + StringEscapeUtils.escapeHtml(bd.getContacts().getContact().get(i).getDescription().get(k).getLang())
+ + "</div>" //keep it
+ + "</div>");
+ }
+
+ //contact phone
+ for (int k = 0; k < bd.getContacts().getContact().get(i).getPhone().size(); k++) {
+ int contactphone = k;
+ out.write("<div id=\"" + PostBackConstants.CONTACT_PREFIX
+ + contactid
+ + PostBackConstants.PHONE
+ + contactphone
+ + "\" style=\"border-width:1px; border-style:solid\" >"
+ + "<div style=\"float:left;height:100%\"><a href=\"javascript:Remove('"
+ + PostBackConstants.CONTACT_PREFIX + contactid + PostBackConstants.PHONE + contactphone
+ + "');\"><i class=\"icon-trash icon-large\"></i></a></div>"
+ + "<div style=\"float:left\">" + ResourceLoader.GetResource(session, "items.phone") + ": </div>"
+ + "<div class=\"edit\" id=\"" + PostBackConstants.CONTACT_PREFIX + contactid + PostBackConstants.PHONE + contactphone + PostBackConstants.VALUE + "\">"
+ + StringEscapeUtils.escapeHtml(bd.getContacts().getContact().get(i).getPhone().get(k).getValue())
+ + "</div>"
+ + "<div style=\"float:left\">" + ResourceLoader.GetResource(session, "items.type") + ": </div>"
+ + "<div class=\"edit\" id=\"" + PostBackConstants.CONTACT_PREFIX + contactid + PostBackConstants.PHONE + contactphone + PostBackConstants.TYPE + "\">"
+ + StringEscapeUtils.escapeHtml(bd.getContacts().getContact().get(i).getPhone().get(k).getUseType())
+ + "</div>"
+ + "</div>");
+
+ }
+
+ //contact addresses
+ for (int k = 0; k < bd.getContacts().getContact().get(i).getAddress().size(); k++) {
+ int contactaddress = k;
+ out.write("<div id=\"" + PostBackConstants.CONTACT_PREFIX + contactid + PostBackConstants.ADDRESS + contactaddress + "\" style=\"border-width:1px; border-style:solid\" >"
+ + "<div style=\"float:left;height:100%\"><a href=\"javascript:Remove('" + PostBackConstants.CONTACT_PREFIX + contactid + PostBackConstants.ADDRESS + contactaddress
+ + "');\"><i class=\"icon-trash icon-large\"></i></a>" + ResourceLoader.GetResource(session, "items.address") + "</div><br>"
+ + "<div style=\"float:left\">" + ResourceLoader.GetResource(session, "items.lang") + ": </div>"
+ + "<div class=\"edit\" id=\"" + PostBackConstants.CONTACT_PREFIX + contactid + PostBackConstants.ADDRESS + contactaddress + PostBackConstants.LANG + "\">"
+ + StringEscapeUtils.escapeHtml(bd.getContacts().getContact().get(i).getAddress().get(k).getLang())
+ + "</div>"
+ + "<div style=\"float:left\">" + ResourceLoader.GetResource(session, "items.sortcode") + ": </div>"
+ + "<div class=\"edit\" id=\"" + PostBackConstants.CONTACT_PREFIX + contactid + PostBackConstants.ADDRESS + contactaddress + PostBackConstants.SORTCODE + "\">"
+ + StringEscapeUtils.escapeHtml(bd.getContacts().getContact().get(i).getAddress().get(k).getSortCode())
+ + "</div>"
+ + "<div style=\"float:left\">" + ResourceLoader.GetResource(session, "items.type") + ": </div>"
+ + "<div class=\"edit\" id=\"" + PostBackConstants.CONTACT_PREFIX + contactid + PostBackConstants.ADDRESS + contactaddress + PostBackConstants.TYPE + "\">"
+ + StringEscapeUtils.escapeHtml(bd.getContacts().getContact().get(i).getAddress().get(k).getUseType())
+ + "</div>"
+ + "<div style=\"float:left\">" + ResourceLoader.GetResource(session, "items.tmodel.key") + " (<a href=\"javascript:tModelModal('" + PostBackConstants.CONTACT_PREFIX + contactid + PostBackConstants.ADDRESS + contactaddress + PostBackConstants.KEYNAME + "')\" >" + "<i class=\"icon-list-alt icon-large\"></i>" + ResourceLoader.GetResource(session, "items.picker") + "</a>): </div>"
+ + "<div class=\"edit\" id=\"" + PostBackConstants.CONTACT_PREFIX + contactid + PostBackConstants.ADDRESS + contactaddress + PostBackConstants.KEYNAME + "\">"
+ + StringEscapeUtils.escapeHtml(bd.getContacts().getContact().get(i).getAddress().get(k).getTModelKey())
+ + "</div>"
+ + "<div><br><a href=\"javascript:AddContactAddressLine('" + contactid + PostBackConstants.ADDRESS + contactaddress + "');\">"
+ + "<i class=\"icon-plus-sign icon-large\"></i></a> " + ResourceLoader.GetResource(session, "items.addressline.add") + "</div>");
+
+ for (int j = 0; j < bd.getContacts().getContact().get(i).getAddress().get(k).getAddressLine().size(); j++) {
+ int contactaddresslines = j;
+ out.write("<div id=\"" + PostBackConstants.CONTACT_PREFIX + contactid + PostBackConstants.ADDRESS + k + PostBackConstants.ADDRESSLINE + contactaddresslines
+ + "\" style=\"border-width:1px; border-style:solid\" >"
+ + "<div style=\"float:left;height:100%\"><a href=\"javascript:Remove('" + PostBackConstants.CONTACT_PREFIX + contactid + PostBackConstants.ADDRESSLINE + contactaddresslines
+ + "');\"><i class=\"icon-trash icon-large\"></i></a></div>"
+ + "<div style=\"float:left\">" + ResourceLoader.GetResource(session, "items.addressvalue") + ": </div>"
+ + "<div class=\"edit\" id=\"" + PostBackConstants.CONTACT_PREFIX + contactid + PostBackConstants.ADDRESS + k + PostBackConstants.ADDRESSLINE + contactaddresslines + PostBackConstants.VALUE + "\">"
+ + StringEscapeUtils.escapeHtml(bd.getContacts().getContact().get(i).getAddress().get(k).getAddressLine().get(k).getValue())
+ + "</div>"
+ + "<div style=\"float:left\">" + ResourceLoader.GetResource(session, "items.keyname.optional") + ": </div>"
+ + "<div class=\"edit\" id=\"" + PostBackConstants.CONTACT_PREFIX + contactid + PostBackConstants.ADDRESS + k + PostBackConstants.ADDRESSLINE + contactaddresslines + PostBackConstants.KEYNAME + "\">"
+ + StringEscapeUtils.escapeHtml(bd.getContacts().getContact().get(i).getAddress().get(k).getAddressLine().get(k).getKeyName())
+ + "</div>"
+ + "<div style=\"float:left\">" + ResourceLoader.GetResource(session, "items.keyvalue.optional") + ": </div>"
+ + "<div class=\"edit\" id=\"" + PostBackConstants.CONTACT_PREFIX + contactid + PostBackConstants.ADDRESS + k + PostBackConstants.ADDRESSLINE + contactaddresslines + PostBackConstants.KEYVALUE + "\">"
+ + StringEscapeUtils.escapeHtml(bd.getContacts().getContact().get(i).getAddress().get(k).getAddressLine().get(k).getKeyValue())
+ + "</div>"
+ + "</div>");
+ } //address line loop
+ out.write("</div>");
+
+ } //end of address loop
+ out.write("</div>");
+ }//end of contact loop
+
+
+ %>
+ </div><!-- contact container -->
+ </div><!-- contact tab -->
+ <div class="tab-pane " id="categories">
+
+ <b><%=ResourceLoader.GetResource(session, "pages.editor.tabnav.categories")%> </b>-
+ <%=ResourceLoader.GetResource(session, "items.categories.description")%>
+ <br><br>
+ <b><%=ResourceLoader.GetResource(session, "items.keyrefcats")%>:</b><br>
+ <a href="javascript:AddCategoryKeyReference();"><i class="icon-plus-sign icon-large"></i></a> <%=ResourceLoader.GetResource(session, "items.keyrefcat.add")%> <Br>
+ <div id="catContainer" style="border-width: 2px; border-style: solid;" >
+
+
+
+ <%
if (bd.getCategoryBag() == null) {
- bd.setCategoryBag(new CategoryBag());
- }
- if (bd.getIdentifierBag() == null) {
- bd.setIdentifierBag(new IdentifierBag());
+ bd.setCategoryBag(new CategoryBag());
}
- %></div><br>
+ // out.write("Keyed Reference Categories:");
+ for (int i = 0; i < bd.getCategoryBag().getKeyedReference().size(); i++) {
- <script type="text/javascript">
- var currentNameEntries =<%= bd.getName().size() - 1%>;
- var currentDisco =<%= bd.getContacts().getContact().size() - 1%>;
- var currentDescriptionEntries =<%= bd.getDescription().size() - 1%>;
- var currentContacts =<%= bd.getContacts().getContact().size() - 1%>;
- var currentcatkeyref =<%=bd.getCategoryBag().getKeyedReference().size()%>;
- var currentcatkeyrefgrp =<%=bd.getCategoryBag().getKeyedReferenceGroup().size()%>;
- var currentident =<%=bd.getIdentifierBag().getKeyedReference().size()%>;
- </script>
-
- <ul class="nav nav-tabs" id="myTab">
- <li class="active"><a href="#general"><%=ResourceLoader.GetResource(session, "pages.editor.tabnav.general")%></a></li>
-
- <li><a href="#discovery" ><%=ResourceLoader.GetResource(session, "pages.editor.tabnav.discovery")%></a></li>
- <li><a href="#contacts" ><%=ResourceLoader.GetResource(session, "pages.editor.tabnav.contacts")%></a></li>
- <li><a href="#categories" ><%=ResourceLoader.GetResource(session, "pages.editor.tabnav.categories")%></a></li>
-
- <li><a href="#identifiers" ><%=ResourceLoader.GetResource(session, "pages.editor.tabnav.identifiers")%></a></li>
- <li><a href="#services" ><%=ResourceLoader.GetResource(session, "pages.editor.tabnav.services")%></a></li>
- <li><a href="#signatures" id="sigtagheader"><%=ResourceLoader.GetResource(session, "pages.editor.tabnav.signatures")%></a></li>
-
- <li><a href="#opinfo" ><%=ResourceLoader.GetResource(session, "pages.editor.tabnav.opinfo")%></a></li>
- <li><a href="#relations" ><%=ResourceLoader.GetResource(session, "pages.editor.tabnav.relatedbusinesses")%></a></li>
- </ul>
- <script>
- $(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=#contacts]').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=#services]').click(function(e) {
- e.preventDefault();
- $(this).tab('show');
- });
- $('#myTab a[href=#signatures]').click(function(e) {
- e.preventDefault();
- $(this).tab('show');
- });
- $('#myTab a[href=#opinfo]').click(function(e) {
- e.preventDefault();
- $(this).tab('show');
- });
- $('#myTab a[href=#relations]').click(function(e) {
- e.preventDefault();
- $(this).tab('show');
- });
-
- </script>
- <div class="tab-content">
- <div class="tab-pane active" id="general">
- <a href="javascript:AddName();"><i class="icon-plus-sign icon-large"></i></a> <b><%=ResourceLoader.GetResource(session, "items.name")%></b> -
- <%=ResourceLoader.GetResource(session, "items.business.name.description")%>
-
- <div id="nameContainer" style="border-width: 2px; border-style: solid;" >
- <%
- for (int i = 0; i < bd.getName().size(); i++) {
- out.write("<div id=\"" + PostBackConstants.NAME + i + "\" style=\"border-width:1px; border-style:solid\" >");
- out.write("<div style=\"float:left; height:100%\"><a href=\"javascript:Remove('Name" + i + "');\"><i class=\"icon-trash icon-large\"></i></a></div>");
- out.write("<div style=\"float:left\"> " + ResourceLoader.GetResource(session, "items.value") + ": </div>"
- + "<div class=\"edit\" id=\"" + PostBackConstants.NAME + i + PostBackConstants.VALUE + "\">" + (bd.getName().get(i).getValue() != null ? StringEscapeUtils.escapeHtml(bd.getName().get(i).getValue()) : "") + "</div>");
- out.write("<div style=\"float:left\">" + ResourceLoader.GetResource(session, "items.lang") + " </div>"
- + "<div class=\"edit\" id=\"" + PostBackConstants.NAME + i + PostBackConstants.LANG + "\">");
- if (bd.getName().get(i).getLang() != null) {
- out.write(StringEscapeUtils.escapeHtml(bd.getName().get(i).getLang()));
- }
- out.write("</div>");
-
- out.write("</div>");
- }
- %>
- </div>
- <Br>
- <a href="javascript:AddDescription();"><i class="icon-plus-sign icon-large"></i></a> <b><%=ResourceLoader.GetResource(session, "items.description")%> </b>-
- <%=ResourceLoader.GetResource(session, "items.businesses.description")%>.
- <div id="Description" style="border-width: 2px; border-style: solid;" >
- <%
- 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-trash icon-large\"></i></a></div>");
- out.write("<div style=\"float:left\">" + ResourceLoader.GetResource(session, "items.value") + ": </div>"
- + "<div class=\"edit\" id=\"" + PostBackConstants.DESCRIPTION + i + PostBackConstants.VALUE + "\">" + StringEscapeUtils.escapeHtml(bd.getDescription().get(i).getValue()) + "</div>");
- out.write("<div style=\"float:left\">" + ResourceLoader.GetResource(session, "items.lang") + ": </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:AddDisco();"><i class="icon-plus-sign icon-large"></i></a>
- <b><%=ResourceLoader.GetResource(session, "items.discoveryurl")%></b>- <%=ResourceLoader.GetResource(session, "items.discoveryurl.description")%>
- <div id="discoContainer" style="border-width: 2px; border-style: solid;" >
- <%
- if (bd.getDiscoveryURLs() != null) {
- for (int i = 0; i < bd.getDiscoveryURLs().getDiscoveryURL().size(); i++) {
-
- out.write("<div id=\"disco" + i + "\" style=\"border-width:1px; border-style:solid\">");
- out.write("<div style=\"float:left;height:100%\"><a href=\"javascript:Remove('disco" + i + "');\"><i class=\"icon-trash icon-large\"></i></a></div>");
- out.write("<div style=\"float:left\">" + ResourceLoader.GetResource(session, "items.value") + ": </div>"
- + "<div class=\"edit\" id=\"" + PostBackConstants.DISCOVERYURL + i + PostBackConstants.VALUE + "\">" + StringEscapeUtils.escapeHtml(bd.getDiscoveryURLs().getDiscoveryURL().get(i).getValue()) + "</div>");
- out.write("<div style=\"float:left\">" + ResourceLoader.GetResource(session, "items.type") + ": </div>"
- + "<div class=\"edit\" id=\"" + PostBackConstants.DISCOVERYURL + i + PostBackConstants.TYPE + "\">" + StringEscapeUtils.escapeHtml(bd.getDiscoveryURLs().getDiscoveryURL().get(i).getUseType()) + "</div>");
-
- out.write("</div>");
-
-
- }
- }
-
- %>
- </div>
- </div>
- <div class="tab-pane " id="contacts">
- <a href="javascript:AddContact();"><i class="icon-plus-sign icon-large"></i></a>
- <b><%=ResourceLoader.GetResource(session, "items.contacts")%></b>-
- <%=ResourceLoader.GetResource(session, "items.contacts.description")%><br>
-
- <div id="contactsContainer" style="border-width: 2px; border-style: solid;" >
- <%
- if (bd.getContacts() == null) {
- bd.setContacts(new Contacts());
- }
- for (int i = 0; i < bd.getContacts().getContact().size(); i++) {
- //this is the outer framework, the add buttons
- out.write("<div id=\"" + PostBackConstants.CONTACT_PREFIX + i + "\" style=\"border-width:2px; border-style:solid; border-color:red\" >"
- + "<div style=\"float:left;height:100%\"><a href=\"javascript:Remove('" + PostBackConstants.CONTACT_PREFIX + i
- + "');\"><i class=\"icon-trash icon-large\"></i></a></div>"
- + "<div style=\"float:left\">" + ResourceLoader.GetResource(session, "items.contact.type") + ": </div>"
- + "<div class=\"edit\" id=\"" + PostBackConstants.CONTACT_PREFIX + i + PostBackConstants.TYPE + "\">"
- + StringEscapeUtils.escapeHtml(bd.getContacts().getContact().get(i).getUseType())
- + "</div>"
- + "<a href=\"javascript:AddContactName('" + i + "');\"><i class=\"icon-plus-sign icon-large\"></i></a>" + ResourceLoader.GetResource(session, "items.name") + "  "
- + "<a href=\"javascript:AddContactEmail('" + i + "');\"><i class=\"icon-plus-sign icon-large\"></i></a>" + ResourceLoader.GetResource(session, "items.email") + "  "
- + "<a href=\"javascript:AddContactDescription('" + i + "');\"><i class=\"icon-plus-sign icon-large\"></i></a>" + ResourceLoader.GetResource(session, "items.description") + "  "
- + "<a href=\"javascript:AddContactPhone('" + i + "');\"><i class=\"icon-plus-sign icon-large\"></i></a>" + ResourceLoader.GetResource(session, "items.phone") + "  "
- + "<a href=\"javascript:AddContactAddress('" + i + "');\"><i class=\"icon-plus-sign icon-large\"></i></a>" + ResourceLoader.GetResource(session, "items.address") + "  ");
- int contactid = i;
- //person name
- for (int k = 0; k < bd.getContacts().getContact().get(i).getPersonName().size(); k++) {
-
- int contactname = k;
- out.write("<div id=\"" + PostBackConstants.CONTACT_PREFIX + contactid + PostBackConstants.NAME + contactname + "\" style=\"border-width:1px; border-style:solid\" >"
- + "<div style=\"float:left;height:100%\"><a href=\"javascript:Remove('" + PostBackConstants.CONTACT_PREFIX + contactid + PostBackConstants.NAME + contactname
- + "');\"><i class=\"icon-trash icon-large\"></i></a></div>"
- + "<div style=\"float:left\">" + ResourceLoader.GetResource(session, "items.name") + ": </div>"
- + "<div class=\"edit\" id=\"" + PostBackConstants.CONTACT_PREFIX + contactid + PostBackConstants.NAME + contactname + PostBackConstants.VALUE + "\">"
- + StringEscapeUtils.escapeHtml(bd.getContacts().getContact().get(i).getPersonName().get(k).getValue()) + "</div>"
- + "<div style=\"float:left\">" + ResourceLoader.GetResource(session, "items.lang") + ": </div>"
- + "<div class=\"edit\" id=\"" + PostBackConstants.CONTACT_PREFIX + contactid + PostBackConstants.NAME + contactname + PostBackConstants.LANG + "\">"
- + (bd.getContacts().getContact().get(i).getPersonName().get(k).getLang() == null ? ""
- : StringEscapeUtils.escapeHtml(bd.getContacts().getContact().get(i).getPersonName().get(k).getLang())) + "</div>"
- + "</div>");
- // + "</div>");
- }
- //email
- for (int k = 0; k < bd.getContacts().getContact().get(i).getEmail().size(); k++) {
- int contactemail = k;
- out.write("<div id=\"" + PostBackConstants.CONTACT_PREFIX + contactid + PostBackConstants.EMAIL + contactemail + "\" style=\"border-width:1px; border-style:solid\" >"
- + "<div style=\"float:left;height:100%\"><a href=\"javascript:Remove('" + PostBackConstants.CONTACT_PREFIX + contactid + PostBackConstants.EMAIL + contactemail
- + "');\"><i class=\"icon-trash icon-large\"></i></a></div>"
- + "<div style=\"float:left\">" + ResourceLoader.GetResource(session, "items.type") + ": </div>"
- + "<div class=\"edit\" id=\"" + PostBackConstants.CONTACT_PREFIX + contactid + PostBackConstants.EMAIL + contactemail + PostBackConstants.TYPE + "\">"
- + StringEscapeUtils.escapeHtml(bd.getContacts().getContact().get(i).getEmail().get(k).getUseType())
- + "</div>"
- + "<div style=\"float:left\">" + ResourceLoader.GetResource(session, "items.value") + ": </div>"
- + "<div class=\"edit\" id=\"" + PostBackConstants.CONTACT_PREFIX + contactid + PostBackConstants.EMAIL + contactemail + PostBackConstants.VALUE + "\">"
- + StringEscapeUtils.escapeHtml(bd.getContacts().getContact().get(i).getEmail().get(k).getValue()) + "</div>"
- + "</div>");
- }
- //out.write("</div>");
- //contact description
- for (int k = 0; k < bd.getContacts().getContact().get(i).getDescription().size(); k++) {
- int contactdescription = k;
- out.write("<div id=\"" + PostBackConstants.CONTACT_PREFIX + contactid + PostBackConstants.DESCRIPTION + contactdescription + "\" style=\"border-width:1px; border-style:solid\" >"
- + "<div style=\"float:left;height:100%\"><a href=\"javascript:Remove('" + PostBackConstants.CONTACT_PREFIX + contactid + PostBackConstants.DESCRIPTION + contactdescription
- + "');\"><i class=\"icon-trash icon-large\"></i></a></div>"
- + "<div style=\"float:left\">" + ResourceLoader.GetResource(session, "items.description") + ": </div>"
- + "<div class=\"edit\" id=\"" + PostBackConstants.CONTACT_PREFIX + contactid + PostBackConstants.DESCRIPTION + contactdescription + PostBackConstants.VALUE + "\">"
- + StringEscapeUtils.escapeHtml(bd.getContacts().getContact().get(i).getDescription().get(k).getValue())
- + "</div>"
- + "<div style=\"float:left\">" + ResourceLoader.GetResource(session, "items.lang") + ": </div>"
- + "<div class=\"edit\" id=\"" + PostBackConstants.CONTACT_PREFIX + contactid + PostBackConstants.DESCRIPTION + contactdescription + PostBackConstants.LANG + "\">"
- + StringEscapeUtils.escapeHtml(bd.getContacts().getContact().get(i).getDescription().get(k).getLang())
- + "</div>" //keep it
- + "</div>");
- }
-
- //contact phone
- for (int k = 0; k < bd.getContacts().getContact().get(i).getPhone().size(); k++) {
- int contactphone = k;
- out.write("<div id=\"" + PostBackConstants.CONTACT_PREFIX
- + contactid
- + PostBackConstants.PHONE
- + contactphone
- + "\" style=\"border-width:1px; border-style:solid\" >"
- + "<div style=\"float:left;height:100%\"><a href=\"javascript:Remove('"
- + PostBackConstants.CONTACT_PREFIX + contactid + PostBackConstants.PHONE + contactphone
- + "');\"><i class=\"icon-trash icon-large\"></i></a></div>"
- + "<div style=\"float:left\">" + ResourceLoader.GetResource(session, "items.phone") + ": </div>"
- + "<div class=\"edit\" id=\"" + PostBackConstants.CONTACT_PREFIX + contactid + PostBackConstants.PHONE + contactphone + PostBackConstants.VALUE + "\">"
- + StringEscapeUtils.escapeHtml(bd.getContacts().getContact().get(i).getPhone().get(k).getValue())
- + "</div>"
- + "<div style=\"float:left\">" + ResourceLoader.GetResource(session, "items.type") + ": </div>"
- + "<div class=\"edit\" id=\"" + PostBackConstants.CONTACT_PREFIX + contactid + PostBackConstants.PHONE + contactphone + PostBackConstants.TYPE + "\">"
- + StringEscapeUtils.escapeHtml(bd.getContacts().getContact().get(i).getPhone().get(k).getUseType())
- + "</div>"
- + "</div>");
-
- }
-
- //contact addresses
- for (int k = 0; k < bd.getContacts().getContact().get(i).getAddress().size(); k++) {
- int contactaddress = k;
- out.write("<div id=\"" + PostBackConstants.CONTACT_PREFIX + contactid + PostBackConstants.ADDRESS + contactaddress + "\" style=\"border-width:1px; border-style:solid\" >"
- + "<div style=\"float:left;height:100%\"><a href=\"javascript:Remove('" + PostBackConstants.CONTACT_PREFIX + contactid + PostBackConstants.ADDRESS + contactaddress
- + "');\"><i class=\"icon-trash icon-large\"></i></a>" + ResourceLoader.GetResource(session, "items.address") + "</div><br>"
- + "<div style=\"float:left\">" + ResourceLoader.GetResource(session, "items.lang") + ": </div>"
- + "<div class=\"edit\" id=\"" + PostBackConstants.CONTACT_PREFIX + contactid + PostBackConstants.ADDRESS + contactaddress + PostBackConstants.LANG + "\">"
- + StringEscapeUtils.escapeHtml(bd.getContacts().getContact().get(i).getAddress().get(k).getLang())
- + "</div>"
- + "<div style=\"float:left\">" + ResourceLoader.GetResource(session, "items.sortcode") + ": </div>"
- + "<div class=\"edit\" id=\"" + PostBackConstants.CONTACT_PREFIX + contactid + PostBackConstants.ADDRESS + contactaddress + PostBackConstants.SORTCODE + "\">"
- + StringEscapeUtils.escapeHtml(bd.getContacts().getContact().get(i).getAddress().get(k).getSortCode())
- + "</div>"
- + "<div style=\"float:left\">" + ResourceLoader.GetResource(session, "items.type") + ": </div>"
- + "<div class=\"edit\" id=\"" + PostBackConstants.CONTACT_PREFIX + contactid + PostBackConstants.ADDRESS + contactaddress + PostBackConstants.TYPE + "\">"
- + StringEscapeUtils.escapeHtml(bd.getContacts().getContact().get(i).getAddress().get(k).getUseType())
- + "</div>"
- + "<div style=\"float:left\">" + ResourceLoader.GetResource(session, "items.tmodel.key") + " (<a href=\"javascript:tModelModal('" + PostBackConstants.CONTACT_PREFIX + contactid + PostBackConstants.ADDRESS + contactaddress + PostBackConstants.KEYNAME + "')\" >" + "<i class=\"icon-list-alt icon-large\"></i>" + ResourceLoader.GetResource(session, "items.picker") + "</a>): </div>"
- + "<div class=\"edit\" id=\"" + PostBackConstants.CONTACT_PREFIX + contactid + PostBackConstants.ADDRESS + contactaddress + PostBackConstants.KEYNAME + "\">"
- + StringEscapeUtils.escapeHtml(bd.getContacts().getContact().get(i).getAddress().get(k).getTModelKey())
- + "</div>"
- + "<div><br><a href=\"javascript:AddContactAddressLine('" + contactid + PostBackConstants.ADDRESS + contactaddress + "');\">"
- + "<i class=\"icon-plus-sign icon-large\"></i></a> " + ResourceLoader.GetResource(session, "items.addressline.add") + "</div>");
-
-
- for (int j = 0; j < bd.getContacts().getContact().get(i).getAddress().get(k).getAddressLine().size(); j++) {
- int contactaddresslines = j;
- out.write("<div id=\"" + PostBackConstants.CONTACT_PREFIX + contactid + PostBackConstants.ADDRESS + k + PostBackConstants.ADDRESSLINE + contactaddresslines
- + "\" style=\"border-width:1px; border-style:solid\" >"
- + "<div style=\"float:left;height:100%\"><a href=\"javascript:Remove('" + PostBackConstants.CONTACT_PREFIX + contactid + PostBackConstants.ADDRESSLINE + contactaddresslines
- + "');\"><i class=\"icon-trash icon-large\"></i></a></div>"
- + "<div style=\"float:left\">" + ResourceLoader.GetResource(session, "items.addressvalue") + ": </div>"
- + "<div class=\"edit\" id=\"" + PostBackConstants.CONTACT_PREFIX + contactid + PostBackConstants.ADDRESS + k + PostBackConstants.ADDRESSLINE + contactaddresslines + PostBackConstants.VALUE + "\">"
- + StringEscapeUtils.escapeHtml(bd.getContacts().getContact().get(i).getAddress().get(k).getAddressLine().get(k).getValue())
- + "</div>"
- + "<div style=\"float:left\">" + ResourceLoader.GetResource(session, "items.keyname.optional") + ": </div>"
- + "<div class=\"edit\" id=\"" + PostBackConstants.CONTACT_PREFIX + contactid + PostBackConstants.ADDRESS + k + PostBackConstants.ADDRESSLINE + contactaddresslines + PostBackConstants.KEYNAME + "\">"
- + StringEscapeUtils.escapeHtml(bd.getContacts().getContact().get(i).getAddress().get(k).getAddressLine().get(k).getKeyName())
- + "</div>"
- + "<div style=\"float:left\">" + ResourceLoader.GetResource(session, "items.keyvalue.optional") + ": </div>"
- + "<div class=\"edit\" id=\"" + PostBackConstants.CONTACT_PREFIX + contactid + PostBackConstants.ADDRESS + k + PostBackConstants.ADDRESSLINE + contactaddresslines + PostBackConstants.KEYVALUE + "\">"
- + StringEscapeUtils.escapeHtml(bd.getContacts().getContact().get(i).getAddress().get(k).getAddressLine().get(k).getKeyValue())
- + "</div>"
- + "</div>");
- } //address line loop
- out.write("</div>");
-
- } //end of address loop
- out.write("</div>");
- }//end of contact loop
-
-
- %>
- </div><!-- contact container -->
- </div><!-- contact tab -->
- <div class="tab-pane " id="categories">
-
- <b><%=ResourceLoader.GetResource(session, "pages.editor.tabnav.categories")%> </b>-
- <%=ResourceLoader.GetResource(session, "items.categories.description")%>
- <br><br>
- <b><%=ResourceLoader.GetResource(session, "items.keyrefcats")%>:</b><br>
- <a href="javascript:AddCategoryKeyReference();"><i class="icon-plus-sign icon-large"></i></a> <%=ResourceLoader.GetResource(session, "items.keyrefcat.add")%> <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=\"" + PostBackConstants.CATBAG_KEY_REF + i + "\" style=\"border-width:2px; border-style:solid\">");
- out.write("<div style=\"float:left;height:100%\"><a href=\"javascript:Remove('" + PostBackConstants.CATBAG_KEY_REF + i + "');\"><i class=\"icon-trash icon-large\"></i></a></div>");
- out.write("<div style=\"float:left\">" + ResourceLoader.GetResource(session, "items.key") + " (<a href=\"javascript:tModelModal('" + PostBackConstants.CATBAG_KEY_REF + i + PostBackConstants.VALUE + "')\" >" + "<i class=\"icon-list-alt icon-large\"></i>" + ResourceLoader.GetResource(session, "items.picker") + "</a>): </div>"
- + "<div class=\"edit\" id=\"" + PostBackConstants.CATBAG_KEY_REF + i + PostBackConstants.VALUE + "\">" + StringEscapeUtils.escapeHtml(bd.getCategoryBag().getKeyedReference().get(i).getTModelKey()) + "</div>");
- out.write("<div style=\"float:left\">" + ResourceLoader.GetResource(session, "items.name") + ": </div>"
- + "<div class=\"edit\" id=\"" + PostBackConstants.CATBAG_KEY_REF + i + PostBackConstants.KEYNAME + "\">" + StringEscapeUtils.escapeHtml(bd.getCategoryBag().getKeyedReference().get(i).getKeyName()) + "</div>");
- out.write("<div style=\"float:left\">" + ResourceLoader.GetResource(session, "items.value") + ": </div>"
- + "<div class=\"edit\" id=\"" + PostBackConstants.CATBAG_KEY_REF + i + PostBackConstants.KEYVALUE + "\">" + StringEscapeUtils.escapeHtml(bd.getCategoryBag().getKeyedReference().get(i).getKeyValue()) + "</div>");
- out.write("</div>");
- }
- %>
- </div>
- <br>
- <b><%=ResourceLoader.GetResource(session, "items.keyrefgroup")%></b><br>
- <a href="javascript:AddCategoryKeyReferenceGroup();"><i class="icon-plus-sign icon-large"></i></a> <%=ResourceLoader.GetResource(session, "items.keyrefgroup.add")%><br>
- <div id="catContainerGrp" style="border-width: 2px; border-style: solid;" >
-
-
- <%
- for (int i = 0; i < bd.getCategoryBag().getKeyedReferenceGroup().size(); i++) {
-
- out.write("<div id=\"" + PostBackConstants.CATBAG_KEY_REF_GRP + i + "\" style=\"border-width:2px; border-style:solid\">"
- + "<div style=\"float:left;height:100%\"><a href=\"javascript:Remove('" + PostBackConstants.CATBAG_KEY_REF_GRP + i + "');\"><i class=\"icon-trash icon-large\"></i></a></div>"
- + "<div style=\"float:left\">" + ResourceLoader.GetResource(session, "items.key") + " (<a href=\"javascript:tModelModal('" + PostBackConstants.CATBAG_KEY_REF_GRP + i + PostBackConstants.VALUE + "')\" >" + "<i class=\"icon-list-alt icon-large\"></i>" + ResourceLoader.GetResource(session, "items.picker") + "</a>): </div>"
- + "<div class=\"edit\" id=\"" + PostBackConstants.CATBAG_KEY_REF_GRP + i + PostBackConstants.VALUE + "\">"
- + StringEscapeUtils.escapeHtml(bd.getCategoryBag().getKeyedReferenceGroup().get(i).getTModelKey())
- + "</div>"
- + "<div id=\"" + PostBackConstants.CATBAG_KEY_REF_GRP + i + PostBackConstants.KEY_REF + "\" style=\"border-width:1px; border-style:solid\">"
- + "<div style=\"float:left;height:100%\"><a href=\"javascript:AddCategoryKeyReferenceGroupKeyRef('" + PostBackConstants.CATBAG_KEY_REF_GRP + i + "');\"><i class=\"icon-plus-sign icon-large\"></i></a></div>"
- + ResourceLoader.GetResource(session, "items.keyrefcat.add")
- + "</div>");
- for (int k = 0; k < bd.getCategoryBag().getKeyedReferenceGroup().get(i).getKeyedReference().size(); k++) {
-
- out.write("<div id=\"" + PostBackConstants.CATBAG_KEY_REF_GRP + i + PostBackConstants.KEY_REF + k + "\" style=\"border-width:1px; border-style:solid\">");
- out.write("<div style=\"float:left;height:100%\"><a href=\"javascript:Remove('" + PostBackConstants.CATBAG_KEY_REF_GRP + i + PostBackConstants.KEY_REF + k + "');\"><i class=\"icon-trash icon-large\"></i></a></div>");
- out.write("<div style=\"float:left\">" + ResourceLoader.GetResource(session, "items.key") + " (<a href=\"javascript:tModelModal('" + PostBackConstants.CATBAG_KEY_REF_GRP + i + PostBackConstants.KEY_REF + k + PostBackConstants.VALUE + "')\" >" + "<i class=\"icon-list-alt icon-large\"></i>" + ResourceLoader.GetResource(session, "items.picker") + "</a>): </div>"
- + "<div class=\"edit\" id=\"" + PostBackConstants.CATBAG_KEY_REF_GRP + i + PostBackConstants.KEY_REF + k + PostBackConstants.VALUE + "\">" + StringEscapeUtils.escapeHtml(bd.getCategoryBag().getKeyedReferenceGroup().get(i).getKeyedReference().get(k).getTModelKey()) + "</div>");
- out.write("<div style=\"float:left\">" + ResourceLoader.GetResource(session, "items.name") + ": </div>"
- + "<div class=\"edit\" id=\"" + PostBackConstants.CATBAG_KEY_REF_GRP + i + PostBackConstants.KEY_REF + k + PostBackConstants.KEYNAME + "\">" + StringEscapeUtils.escapeHtml(bd.getCategoryBag().getKeyedReferenceGroup().get(i).getKeyedReference().get(k).getKeyName()) + "</div>");
- out.write("<div style=\"float:left\">" + ResourceLoader.GetResource(session, "items.value") + ": </div>"
- + "<div class=\"edit\" id=\"" + PostBackConstants.CATBAG_KEY_REF_GRP + i + PostBackConstants.KEY_REF + k + PostBackConstants.KEYVALUE + "\">" + StringEscapeUtils.escapeHtml(bd.getCategoryBag().getKeyedReferenceGroup().get(i).getKeyedReference().get(k).getKeyValue()) + "</div>");
- out.write("</div>");
- }
-
- out.write("</div>");
- }
-
-
- %>
- </div>
- </div>
- <div class="tab-pane " id="identifiers">
- <b><%=ResourceLoader.GetResource(session, "items.identifiers")%> </b>-
- <%=ResourceLoader.GetResource(session, "items.identifiers.description")%>
-
- <Br>
- <a href="javascript:AddIdentKeyReference();"><i class="icon-plus-sign icon-large"></i></a> <%=ResourceLoader.GetResource(session, "items.keyrefcat.add")%> <Br>
- <div id="identContainer" style="border-width: 2px; border-style: solid;" >
- <%
- 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-trash icon-large\"></i></a></div>");
- out.write("<div style=\"float:left\">" + ResourceLoader.GetResource(session, "items.key") + " (<a href=\"javascript:tModelModal('" + PostBackConstants.IDENT_KEY_REF + i + PostBackConstants.VALUE + "')\" >" + "<i class=\"icon-list-alt icon-large\"></i> " + ResourceLoader.GetResource(session, "items.picker") + "</a>): </div>"
- + "<div class=\"edit\" id=\"" + PostBackConstants.IDENT_KEY_REF + i + PostBackConstants.VALUE + "\">" + StringEscapeUtils.escapeHtml(bd.getIdentifierBag().getKeyedReference().get(i).getTModelKey()) + "</div>");
- out.write("<div style=\"float:left\">" + ResourceLoader.GetResource(session, "items.name") + ": </div>"
- + "<div class=\"edit\" id=\"" + PostBackConstants.IDENT_KEY_REF + i + PostBackConstants.KEYNAME + "\">" + StringEscapeUtils.escapeHtml(bd.getIdentifierBag().getKeyedReference().get(i).getKeyName()) + "</div>");
- out.write("<div style=\"float:left\">" + ResourceLoader.GetResource(session, "items.value") + ": </div>"
- + "<div class=\"edit\" id=\"" + PostBackConstants.IDENT_KEY_REF + i + PostBackConstants.KEYVALUE + "\">" + StringEscapeUtils.escapeHtml(bd.getIdentifierBag().getKeyedReference().get(i).getKeyValue()) + "</div>");
- out.write("</div>");
- }
- %>
- </div>
- </div>
- <div class="tab-pane " id="services">
- <b><%=ResourceLoader.GetResource(session, "pages.businesseditor.businesslist")%> </b>-
- <%
- if (bd.getBusinessServices() != null) {
- out.write(Integer.toString(bd.getBusinessServices().getBusinessService().size()));
- } else {
- out.write("0");
- }
- %> <%=ResourceLoader.GetResource(session, "pages.businesseditor.businesslist2")%>
- <%if (!newitem) {
- %>
- <br>
- <a href="serviceEditor.jsp?bizid=<%=URLEncoder.encode(bd.getBusinessKey(), "UTF-8")%>"><i class="icon-plus-sign icon-large"></i> <%=ResourceLoader.GetResource(session, "items.service.add")%> </a>
- <%
- }
- %>
- <br>
- <table class="table table-hover"><tr>
- <th><%=ResourceLoader.GetResource(session, "items.name")%> </th>
- <th><%=ResourceLoader.GetResource(session, "items.key")%></th>
- <th><%=ResourceLoader.GetResource(session, "items.bindingtemplate")%></th></tr>
- <%
- if (bd.getBusinessServices() != null) {
- for (int i = 0; i < bd.getBusinessServices().getBusinessService().size(); i++) {
- %><tr>
- <td><%
- if (!bd.getBusinessServices().getBusinessService().get(i).getName().isEmpty()) {
- out.write(bd.getBusinessServices().getBusinessService().get(i).getName().get(0).getValue());
- }
- %>
- </td><td><a href="serviceEditor.jsp?id=<%=StringEscapeUtils.escapeHtml(bd.getBusinessServices().getBusinessService().get(i).getServiceKey())%>">
- <%
- out.write(bd.getBusinessServices().getBusinessService().get(i).getServiceKey());
- %>
- <i class="icon-edit icon-large"></i></a>
- </td><td>
- <%
- if (bd.getBusinessServices().getBusinessService().get(i).getBindingTemplates() == null) {
- out.write("0");
- } else {
- out.write(Integer.toString(bd.getBusinessServices().getBusinessService().get(i).getBindingTemplates().getBindingTemplate().size()));
- }
- %>
- </td>
- </tr>
- <%
- }
- }
- %>
- </table>
-
- </div>
- <div class="tab-pane" id="signatures"><b><%=ResourceLoader.GetResource(session, "items.dsigs")%></b>
- <br>
- <%
- //icon-exclamation-sign
- if (bd.getSignature().isEmpty()) {
- out.write(ResourceLoader.GetResource(session, "items.signed.not"));
- } else {
- out.write(ResourceLoader.GetResource(session, "items.signed") + " " + bd.getSignature().size());
- %>
- <table class="table table-hover">
- <tr><th>#</th>
- <th><%=ResourceLoader.GetResource(session, "pages.signatures.signedby")%></th>
- <th></th>
- <th><%=ResourceLoader.GetResource(session, "pages.signatures.status")%></th></tr>
-
- <%
- for (int k = 0; k < bd.getSignature().size(); k++) {
- out.write("<tr><td>" + k + "</td><td>");
- out.write(x.SignatureToReadable(bd.getSignature().get(k)));
- out.write("</td><td>");
- out.write("<a href=\"ajax/getCert.jsp?type=business&id=" + URLEncoder.encode(bd.getBusinessKey(), "UTF-8") + "&index=" + k + "\">" + ResourceLoader.GetResource(session, "items.signed.viewcert") + "</a>");
- out.write("</td><td><div id=\"digsig" + k + "\">" + ResourceLoader.GetResource(session, "items.loading") + "</div>");
- %>
- <script type="text/javascript">
- $.get("ajax/validateSignature.jsp?type=business&id=<%=StringEscapeUtils.escapeJavaScript(bd.getBusinessKey())%>", function(data) {
- $("#digsig<%=k%>").html(data);
- if (data.indexOf("invalid") !== -1)
- {
- $("#sigtagheader").html($("#sigtagheader").html() + "<i class=\"icon-thumbs-down icon-large\" style=\"color:red\"></i>");
- }
- else
- {
- $("#sigtagheader").html($("#sigtagheader").html() + "<i class=\"icon-thumbs-up icon-large\" style=\"color:green\"></i>");
- }
- })
- </script>
- <%
- out.write("</td></tr>");
- }
- %>
- </table>
- <%
- }
- %>
- </div>
-
- <div class="tab-pane" id="opinfo">
- <%
- if (!newitem) {
- %>
- <script type="text/javascript">
- $.get("ajax/opInfo.jsp?id=<%=StringEscapeUtils.escapeJavaScript(bd.getBusinessKey())%>", function(data) {
- $("#opinfodiv").html(data);
- })
- </script>
- <div id="opinfodiv"></div>
- <%
- }
- %>
-
- </div>
- <div class="tab-pane" id="relations">
- <%
- if (!newitem) {
-
- %>
- <script type="text/javascript">
- var data2 = new Array();
- data2.push({
- name: "selection",
- value: "key"});
- data2.push({
- name: "nonce",
- value: "<%=(String) session.getAttribute("nonce")%>"});
- data2.push({
- name: "searchfor",
- value: "RelatedBusiness"
- });
- data2.push({
- name: "searchcontent",
- value: "<%=StringEscapeUtils.escapeJavaScript(bd.getBusinessKey())%>"
- });
-
- $.ajax({url: "ajax/search.jsp", type: "post", data: data2,
- success: function(x) {
- $("#relationresults").html(x);
- }});
-
- </script>
- <a href="assertions.jsp?fromkey=<%=URLEncoder.encode(bizid, "UTF-8")%>"> <i class="icon-plus-sign icon-large"></i>
- <%=ResourceLoader.GetResource(session, "items.publisherassertion.add")%></a><br>
- <div id="relationresults"></div>
-
- <%
- }
- %>
- </div>
- </div>
- </div>
- <div><br>
- <%
- if (bd.getSignature().isEmpty()) {
- %>
- <a class="btn btn-primary " href="javascript:saveBusiness();"><i class="icon-save icon-large"></i> <%=ResourceLoader.GetResource(session, "actions.save")%></a>
- <% } else {
- %>
- <a href="#confirmDialog" role="button" class="btn btn-primary" data-toggle="modal"><i class="icon-save icon-large"></i> <%=ResourceLoader.GetResource(session, "actions.save")%></a>
-
- <% }
- if (!newitem) {
-
- %> |
- <a class="btn btn-danger " href="javascript:deleteBusiness();"><i class="icon-trash icon-large"></i> <%=ResourceLoader.GetResource(session, "actions.delete")%></a> |
- <a class="btn btn-success " href="signer.jsp?id=<%=URLEncoder.encode(bizid, "UTF-8")%>&type=business"><i class="icon-pencil icon-large"></i> <%=ResourceLoader.GetResource(session, "actions.sign")%></a> |
- <a class="btn btn-info " href="editSubscription.jsp?bizid=<%=URLEncoder.encode(bizid, "UTF-8")%>" title="<%=ResourceLoader.GetResource(session, "actions.subscribe.description")%>"><i class="icon-rss icon-large"></i> <%=ResourceLoader.GetResource(session, "actions.subscribe")%></a> |
- <a class="btn btn-warning " href="transfer.jsp?biz=<%=URLEncoder.encode(bizid, "UTF-8")%>" title="<%=ResourceLoader.GetResource(session, "actions.transfer.description")%>"><i class="icon-exchange icon-large"></i> <%=ResourceLoader.GetResource(session, "actions.transfer")%></a> |
- <a class="btn " href="javascript:ViewAsXML();"><i class="icon-screenshot icon-large"></i> <%=ResourceLoader.GetResource(session, "actions.asxml")%></a>
-
- <%
- //TODO for 3.2.1 <a class="btn " href="javascript:Copy();"><i class="icon-copy icon-large"></i> <%=ResourceLoader.GetResource(session, "actions.copy")% ></a>
- }
- %>
-
- <script type="text/javascript">
- Reedit();
- <%
- if (!newitem) {
-
- %>
- function ViewAsXML()
- {
- $.get("ajax/toXML.jsp?id=<%=URLEncoder.encode(bizid, "UTF-8")%>&type=business", function(data) {
- window.console && console.log('asXml success');
-
- $("#viewAsXmlContent").html(safe_tags_replace(data));
- $("#viewAsXml").modal('show');
- });
+ out.write("<div id=\"" + PostBackConstants.CATBAG_KEY_REF + i + "\" style=\"border-width:2px; border-style:solid\">");
+ out.write("<div style=\"float:left;height:100%\"><a href=\"javascript:Remove('" + PostBackConstants.CATBAG_KEY_REF + i + "');\"><i class=\"icon-trash icon-large\"></i></a></div>");
+ out.write("<div style=\"float:left\">" + ResourceLoader.GetResource(session, "items.key") + " (<a href=\"javascript:tModelModal('" + PostBackConstants.CATBAG_KEY_REF + i + PostBackConstants.VALUE + "')\" >"
+ + "<i class=\"icon-list-alt icon-large\"></i>" + ResourceLoader.GetResource(session, "items.picker") + "</a>) "
+ + "<a href=\"tmodelEditor.jsp?id=" + URLEncoder.encode(bd.getCategoryBag().getKeyedReference().get(i).getTModelKey(), "UTF8") + "\"><i class=\"icon-zoom-in icon-large\"></i></a>"
+ + ": </div>"
+ + "<div class=\"edit\" id=\"" + PostBackConstants.CATBAG_KEY_REF + i + PostBackConstants.VALUE + "\">" + StringEscapeUtils.escapeHtml(bd.getCategoryBag().getKeyedReference().get(i).getTModelKey()) + "</div>");
+ out.write("<div style=\"float:left\">" + ResourceLoader.GetResource(session, "items.name") + ": </div>"
+ + "<div class=\"edit\" id=\"" + PostBackConstants.CATBAG_KEY_REF + i + PostBackConstants.KEYNAME + "\">" + StringEscapeUtils.escapeHtml(bd.getCategoryBag().getKeyedReference().get(i).getKeyName()) + "</div>");
+ out.write("<div style=\"float:left\">" + ResourceLoader.GetResource(session, "items.value") + ": </div>"
+ + "<div class=\"edit\" id=\"" + PostBackConstants.CATBAG_KEY_REF + i + PostBackConstants.KEYVALUE + "\">" + StringEscapeUtils.escapeHtml(bd.getCategoryBag().getKeyedReference().get(i).getKeyValue()) + "</div>");
+ out.write("</div>");
+ }
+ %>
+ </div>
+ <br>
+ <b><%=ResourceLoader.GetResource(session, "items.keyrefgroup")%>:</b><br>
+ <a href="javascript:AddCategoryKeyReferenceGroup();"><i class="icon-plus-sign icon-large"></i></a> <%=ResourceLoader.GetResource(session, "items.keyrefgroup.add")%><br>
+ <div id="catContainerGrp" style="border-width: 2px; border-style: solid;" >
+
+
+ <%
+ for (int i = 0; i < bd.getCategoryBag().getKeyedReferenceGroup().size(); i++) {
+
+ out.write("<div id=\"" + PostBackConstants.CATBAG_KEY_REF_GRP + i + "\" style=\"border-width:2px; border-style:solid\">"
+ + "<div style=\"float:left;height:100%\"><a href=\"javascript:Remove('" + PostBackConstants.CATBAG_KEY_REF_GRP + i + "');\"><i class=\"icon-trash icon-large\"></i></a></div>"
+ + "<div style=\"float:left\">" + ResourceLoader.GetResource(session, "items.key") + " (<a href=\"javascript:tModelModal('" + PostBackConstants.CATBAG_KEY_REF_GRP + i + PostBackConstants.VALUE + "')\" >" + "<i class=\"icon-list-alt icon-large\"></i>" + ResourceLoader.GetResource(session, "items.picker") + "</a>)"
+ + "<a href=\"tmodelEditor.jsp?id=" + URLEncoder.encode(bd.getCategoryBag().getKeyedReferenceGroup().get(i).getTModelKey(), "UTF8") + "\"><i class=\"icon-zoom-in icon-large\"></i></a>"
+ + ": </div>"
+ + "<div class=\"edit\" id=\"" + PostBackConstants.CATBAG_KEY_REF_GRP + i + PostBackConstants.VALUE + "\">"
+ + StringEscapeUtils.escapeHtml(bd.getCategoryBag().getKeyedReferenceGroup().get(i).getTModelKey())
+ + "</div>"
+ + "<div id=\"" + PostBackConstants.CATBAG_KEY_REF_GRP + i + PostBackConstants.KEY_REF + "\" style=\"border-width:1px; border-style:solid\">"
+ + "<div style=\"float:left;height:100%\"><a href=\"javascript:AddCategoryKeyReferenceGroupKeyRef('" + PostBackConstants.CATBAG_KEY_REF_GRP + i + "');\"><i class=\"icon-plus-sign icon-large\"></i></a></div>"
+ + ResourceLoader.GetResource(session, "items.keyrefcat.add")
+ + "</div>");
+ for (int k = 0; k < bd.getCategoryBag().getKeyedReferenceGroup().get(i).getKeyedReference().size(); k++) {
+
+ out.write("<div id=\"" + PostBackConstants.CATBAG_KEY_REF_GRP + i + PostBackConstants.KEY_REF + k + "\" style=\"border-width:1px; border-style:solid\">");
+ out.write("<div style=\"float:left;height:100%\"><a href=\"javascript:Remove('" + PostBackConstants.CATBAG_KEY_REF_GRP + i + PostBackConstants.KEY_REF + k + "');\"><i class=\"icon-trash icon-large\"></i></a></div>");
+ out.write("<div style=\"float:left\">" + ResourceLoader.GetResource(session, "items.key") + " (<a href=\"javascript:tModelModal('" + PostBackConstants.CATBAG_KEY_REF_GRP + i + PostBackConstants.KEY_REF + k + PostBackConstants.VALUE + "')\" >" + "<i class=\"icon-list-alt icon-large\"></i>" + ResourceLoader.GetResource(session, "items.picker") + "</a>) "
+ + "<a href=\"tmodelEditor.jsp?id=" + URLEncoder.encode(bd.getCategoryBag().getKeyedReferenceGroup().get(i).getKeyedReference().get(k).getTModelKey(), "UTF8") + "\"><i class=\"icon-zoom-in icon-large\"></i></a>"
+ + ": </div>"
+ + "<div class=\"edit\" id=\"" + PostBackConstants.CATBAG_KEY_REF_GRP + i + PostBackConstants.KEY_REF + k + PostBackConstants.VALUE + "\">" + StringEscapeUtils.escapeHtml(bd.getCategoryBag().getKeyedReferenceGroup().get(i).getKeyedReference().get(k).getTModelKey()) + "</div>");
+ out.write("<div style=\"float:left\">" + ResourceLoader.GetResource(session, "items.name") + ": </div>"
+ + "<div class=\"edit\" id=\"" + PostBackConstants.CATBAG_KEY_REF_GRP + i + PostBackConstants.KEY_REF + k + PostBackConstants.KEYNAME + "\">" + StringEscapeUtils.escapeHtml(bd.getCategoryBag().getKeyedReferenceGroup().get(i).getKeyedReference().get(k).getKeyName()) + "</div>");
+ out.write("<div style=\"float:left\">" + ResourceLoader.GetResource(session, "items.value") + ": </div>"
[... 334 lines stripped ...]
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@juddi.apache.org
For additional commands, e-mail: commits-help@juddi.apache.org