geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From xuhaih...@apache.org
Subject svn commit: r807510 - /geronimo/server/branches/2.2/plugins/console/console-base-portlets/src/main/webapp/WEB-INF/view/infomanager/svrInfoNormal.jsp
Date Tue, 25 Aug 2009 07:52:19 GMT
Author: xuhaihong
Date: Tue Aug 25 07:52:18 2009
New Revision: 807510

URL: http://svn.apache.org/viewvc?rev=807510&view=rev
Log:
Correct some DWR API and use message tag to show the content.

Modified:
    geronimo/server/branches/2.2/plugins/console/console-base-portlets/src/main/webapp/WEB-INF/view/infomanager/svrInfoNormal.jsp

Modified: geronimo/server/branches/2.2/plugins/console/console-base-portlets/src/main/webapp/WEB-INF/view/infomanager/svrInfoNormal.jsp
URL: http://svn.apache.org/viewvc/geronimo/server/branches/2.2/plugins/console/console-base-portlets/src/main/webapp/WEB-INF/view/infomanager/svrInfoNormal.jsp?rev=807510&r1=807509&r2=807510&view=diff
==============================================================================
--- geronimo/server/branches/2.2/plugins/console/console-base-portlets/src/main/webapp/WEB-INF/view/infomanager/svrInfoNormal.jsp
(original)
+++ geronimo/server/branches/2.2/plugins/console/console-base-portlets/src/main/webapp/WEB-INF/view/infomanager/svrInfoNormal.jsp
Tue Aug 25 07:52:18 2009
@@ -127,17 +127,17 @@
     Jsr77Lookup.getJavaVMStatistics(metadata);
 }
 function <portlet:namespace/>updateValues(serverStats) {
-    DWRUtil.setValue("<portlet:namespace/>CurrentMemory", serverStats.memoryCurrent);
-    DWRUtil.setValue("<portlet:namespace/>MostMemory", serverStats.memoryMost);
-    DWRUtil.setValue("<portlet:namespace/>AvailableMemory", serverStats.memoryAllocated);
-    DWRUtil.setValue("<portlet:namespace/>UpTime", serverStats.upTime);
+    dwr.util.setValue("<portlet:namespace/>CurrentMemory", serverStats.memoryCurrent);
+    dwr.util.setValue("<portlet:namespace/>MostMemory", serverStats.memoryMost);
+    dwr.util.setValue("<portlet:namespace/>AvailableMemory", serverStats.memoryAllocated);
+    dwr.util.setValue("<portlet:namespace/>UpTime", serverStats.upTime);
     if(!<portlet:namespace/>stopped) {
         setTimeout("<portlet:namespace/>callServer()", 5000);
     }
 }
 function <portlet:namespace/>onError() {
     <portlet:namespace/>stopped=true;
-    DWRUtil.setValue("<portlet:namespace/>ErrorArea", '<form name="<portlet:namespace/>Refresh"
action="<portlet:actionURL/>" method="POST"><input type="submit" value="Refresh"/></form>');
+    dwr.util.setValue("<portlet:namespace/>ErrorArea", '<form name="<portlet:namespace/>Refresh"
action="<portlet:actionURL/>" method="POST"><input type="submit" value="<fmt:message
key="consolebase.common.refresh"/>"/></form>',{escapeHtml:false});
 }
 <portlet:namespace/>callServer();
 </script>



Mime
View raw message