]> WPIA git - gigi.git/blobdiff - src/org/cacert/gigi/pages/account/domain/PingConfigForm.java
upd: enforce a more strict Form call pattern.
[gigi.git] / src / org / cacert / gigi / pages / account / domain / PingConfigForm.java
index 80ce8ff2e06bebac61203dcef1a9d9ea1b39a82c..6d23c3a0a14ea4fbe0732cf9069bfc3cb2bece3d 100644 (file)
@@ -108,7 +108,7 @@ public class PingConfigForm extends Form {
     }
 
     @Override
-    public boolean submit(PrintWriter out, HttpServletRequest req) throws GigiApiException {
+    public SubmissionResult submit(HttpServletRequest req) throws GigiApiException {
         target.clearPings();
         if (req.getParameter("emailType") != null && req.getParameter("email") != null) {
             try {
@@ -142,14 +142,13 @@ public class PingConfigForm extends Form {
             }
         }
         Gigi.notifyPinger(null);
-        return false;
+        return new RedirectResult(req.getPathInfo());
     }
 
     @Override
     protected void outputContent(PrintWriter out, Language l, Map<String, Object> vars) {
-        out.print("<table class=\"wrapper dataTable\"><tbody>");
+        vars.put("notEmbedded", true);
         outputEmbeddableContent(out, l, vars);
-        out.print("<tr><td></td><td><input type=\"submit\" value=\"Update\"/></td></tbody></table>");
     }
 
     protected void outputEmbeddableContent(PrintWriter out, Language l, Map<String, Object> vars) {