title: Spring WebFlow2 JavaScript is not submitting page?
body: <p>Spring WebFlow2 JavaScript is not submitting page?</p>
  
  <p>I am trying to use Spring JavaScript that comes with WebFlow2 to submitted my page with a transition value if the user clicks on one of the radio buttons. I inserted my javascript but the page is not getting submitted on the click?</p>
  
  <p>JSP:</p>
  
  <pre><code>&lt;%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%&gt;
  &lt;%@ taglib prefix="form" uri="http://www.springframework.org/tags/form"%&gt;
  &lt;html&gt;
  &lt;head&gt;
  &lt;title&gt;Spring 3.0 MVC - Web Flow Example&lt;/title&gt;
  
  &lt;script type="text/javascript"
      src="&lt;c:url value="/resources/dojo/dojo.js" /&gt;"&gt;
  
  &lt;/script&gt;
  &lt;script type="text/javascript"
      src="&lt;c:url value="/resources/spring/Spring.js" /&gt;"&gt;
  
  &lt;/script&gt;
  &lt;script type="text/javascript"
      src="&lt;c:url value="/resources/spring/Spring-Dojo.js" /&gt;"&gt;
  
  &lt;/script&gt;
  
  &lt;link type="text/css" rel="stylesheet"
      href="&lt;c:url value="/resources/dijit/themes/tundra/tundra.css" /&gt;" /&gt;
  &lt;/head&gt;
  &lt;body&gt;
      &lt;h2&gt;Customer Registration&lt;/h2&gt;
  
      &lt;form:form commandName="customer" id="customer"&gt;
          &lt;input type="hidden" name="_flowExecutionKey"
              value="${flowExecutionKey}" /&gt;
          &lt;table&gt;
              &lt;tr&gt;
                  &lt;td&gt;&lt;font color=red&gt;&lt;form:errors path="name" /&gt;&lt;/font&gt;&lt;b&gt;Name:
                  &lt;/b&gt;&lt;/td&gt;
                  &lt;td&gt;&lt;form:input path="name" id="name" /&gt; &lt;script
                          type="text/javascript"&gt;
                      Spring
                              .addDecoration(new Spring.ElementDecoration(
                                      {
                                          elementId : "name",
                                          widgetType : "dijit.form.ValidationTextBox",
                                          widgetAttrs : {
                                              promptMessage : "This is the name you would like entered into the system."
                                          }
                                      }));
                  &lt;/script&gt; &lt;br /&gt;
                      &lt;p&gt;&lt;/td&gt;
              &lt;/tr&gt;
              &lt;tr&gt;
                  &lt;td&gt;&lt;font color=red&gt;&lt;form:errors path="phoneNumber" /&gt;&lt;/font&gt;
  
                      &lt;b&gt;Phone number: &lt;/b&gt;&lt;/td&gt;
                  &lt;td&gt;&lt;form:input path="phoneNumber" id="phoneNumber" /&gt;&lt;br /&gt;
                      &lt;script type="text/javascript"&gt;
                          Spring
                                  .addDecoration(new Spring.ElementDecoration(
                                          {
                                              elementId : "phoneNumber",
                                              widgetType : "dijit.form.ValidationTextBox",
                                              widgetAttrs : {
                                                  promptMessage : "This is the phone number for the above name"
                                              }
                                          }));
                      &lt;/script&gt;&lt;/td&gt;
              &lt;/tr&gt;
              &lt;tr&gt;
                  &lt;td&gt;&lt;/td&gt;
              &lt;/tr&gt;
              &lt;tr&gt;
                  &lt;td&gt;&lt;b&gt;Row:&lt;/b&gt;&lt;/td&gt;
                  &lt;td&gt;&lt;form:radiobutton value="B" path="row" id="row" /&gt;Row: B&lt;BR&gt;
                      &lt;form:radiobutton value="A" path="row" id="row" /&gt;Row: A&lt;BR&gt;
                      &lt;script type="text/javascript"&gt;
                          Spring.addDecoration(new Spring.AjaxEventDecoration({
                              elementId : "row",
                              formId : "customer",
                              event : "onChange",
                              params : {
                                  _eventId : "loadSchools",
                                  fragments : "body"
                              }
                          }));
                      &lt;/script&gt;&lt;/td&gt;
              &lt;/tr&gt;
          &lt;/table&gt;
          &lt;input type="submit" name="_eventId_proceed" value="proceed"
              id="proceed" /&gt;
          &lt;script type="text/javascript"&gt;
              Spring.addDecoration(new Spring.ValidateAllDecoration({
                  elementId : 'proceed',
                  event : 'onclick'
              }));
          &lt;/script&gt;
          &lt;input type="submit" name="_eventId_cancel" value="Cancel" /&gt;
      &lt;/form:form&gt;
  
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>