juddi-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tcunn...@apache.org
Subject svn commit: r883719 - /webservices/juddi/trunk/juddi-console/uddi-portlets/src/main/java/org/apache/juddi/portlets/client/DetailPanel.java
Date Tue, 24 Nov 2009 14:59:33 GMT
Author: tcunning
Date: Tue Nov 24 14:59:33 2009
New Revision: 883719

URL: http://svn.apache.org/viewvc?rev=883719&view=rev
Log:
JUDDI-315
Don't render anchortext if access point url type is "other".

Modified:
    webservices/juddi/trunk/juddi-console/uddi-portlets/src/main/java/org/apache/juddi/portlets/client/DetailPanel.java

Modified: webservices/juddi/trunk/juddi-console/uddi-portlets/src/main/java/org/apache/juddi/portlets/client/DetailPanel.java
URL: http://svn.apache.org/viewvc/webservices/juddi/trunk/juddi-console/uddi-portlets/src/main/java/org/apache/juddi/portlets/client/DetailPanel.java?rev=883719&r1=883718&r2=883719&view=diff
==============================================================================
--- webservices/juddi/trunk/juddi-console/uddi-portlets/src/main/java/org/apache/juddi/portlets/client/DetailPanel.java
(original)
+++ webservices/juddi/trunk/juddi-console/uddi-portlets/src/main/java/org/apache/juddi/portlets/client/DetailPanel.java
Tue Nov 24 14:59:33 2009
@@ -145,10 +145,18 @@
 						bindingtable.setHTML(bindingRow, 0, UDDIBrowser.images.description().getHTML());
 						bindingtable.setText(bindingRow++, 1,  serviceBinding.getDescription());
 						bindingtable.setHTML(bindingRow, 0, UDDIBrowser.images.endpointlive().getHTML());
-						bindingtable.setHTML(bindingRow++, 1, serviceBinding.getUrlType() + ":" 
+						
+						// For JBossESB or others using "other" as UrlType, don't display the accesspoint as

+						// http URL
+						if ("other".equals(serviceBinding.getUrlType())) {
+							bindingtable.setHTML(bindingRow++, 1, serviceBinding.getUrlType() + ":" 
+									+  new HTML(serviceBinding.getAccessPoint()).getHTML());							
+						} else {
+							bindingtable.setHTML(bindingRow++, 1, serviceBinding.getUrlType() + ":" 
 								+  new HTML("<a href='" 
 								+ serviceBinding.getAccessPoint() + "'>" 
 								+ serviceBinding.getAccessPoint() + "</a>").getHTML());
+						}
 						table.setHTML(row, 1, bindingtable.toString());
 					}
 				} else {



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


Mime
View raw message