title: How do I do field Validate and Check for Requested Fields with Sprinig WebFlow, Spring-JS, dojo, dijit
body: <p>How do I do field Validate and Check for Requested Fields with Sprinig WebFlow, Spring-JS, dojo.</p>
  
  <p>I know I have to do something like the following:</p>
  
  <pre><code>&lt;script type="text/javascript"&gt;                     Spring.addDecoration(new Spring.ValidateAllDecoration({elementId:'proceed', event:'onclick'}));
  &lt;/script&gt;
  </code></pre>
  
  <p>and</p>
  
  <pre><code>&lt;form:input path="creditCardName" maxlength="40"/&gt;
  &lt;script type="text/javascript"&gt;
  Spring.addDecoration(new Spring.ElementDecoration({
      elementId : "creditCardName",
      widgetType : "dijit.form.ValidationTextBox",
      widgetAttrs : { required : true }}));
  &lt;/script&gt;
  </code></pre>
  
  <p>is this all I have to do?</p>