Skip to Content.
Sympa Menu

perfsonar-dev - perfsonar: r3843 - branches/WebAdmin/perfSONARWebAdmin/auxiliary/wizard

Subject: perfsonar development work

List archive

perfsonar: r3843 - branches/WebAdmin/perfSONARWebAdmin/auxiliary/wizard


Chronological Thread 
  • From:
  • To:
  • Subject: perfsonar: r3843 - branches/WebAdmin/perfSONARWebAdmin/auxiliary/wizard
  • Date: Fri, 16 May 2008 09:32:39 -0400

Author: michael.bischoff
Date: 2008-05-16 09:32:36 -0400 (Fri, 16 May 2008)
New Revision: 3843

Modified:
branches/WebAdmin/perfSONARWebAdmin/auxiliary/wizard/HTMLOutput.java
Log:
Sorts groups before printing them allows one to the order of groups in a
predictable way, also allows one to control the order of groups if the group
names are prefixed with a number.

If this breaks something or is not to ones liking revert, thats what source
control is for.

Modified: branches/WebAdmin/perfSONARWebAdmin/auxiliary/wizard/HTMLOutput.java
===================================================================
--- branches/WebAdmin/perfSONARWebAdmin/auxiliary/wizard/HTMLOutput.java
2008-05-16 07:23:50 UTC (rev 3842)
+++ branches/WebAdmin/perfSONARWebAdmin/auxiliary/wizard/HTMLOutput.java
2008-05-16 13:32:36 UTC (rev 3843)
@@ -1,9 +1,12 @@
package perfSONARWebAdmin.auxiliary.wizard;

import java.io.IOException;
+import java.util.ArrayList;
+import java.util.Collections;
import java.util.Hashtable;
import java.util.Iterator;
import java.util.LinkedList;
+import java.util.List;

import javax.servlet.ServletOutputStream;
import javax.servlet.http.HttpServletRequest;
@@ -213,7 +216,9 @@
Hashtable<String, WizardProperties> Properties,
String message)
throws IOException {

- Iterator groupIt = Properties.keySet().iterator();
+ List<String> groupnames = new
ArrayList<String>(Properties.keySet());
+ Collections.sort(groupnames);
+ Iterator groupIt = groupnames.iterator();
preemptModified("default.css");
out.println("<div class=\"top\"><br>" + message +
"</br></div>");
out.println("<div id=\"properties\" class=\"properties\">");




Archive powered by MHonArc 2.6.16.

Top of Page