Advertisement
shmoula

Untitled

Apr 3rd, 2013
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 3.63 KB | None | 0 0
  1. <form:form modelAttribute="gathering">
  2.                         <table>
  3.                                 <tbody>
  4.                                         <tr>
  5.                                                 <td><label for="name"><spring:message code="gathering.form.label.name" />:</label></td>
  6.                                                 <td><form:input path="name" maxlength="40" /> <form:errors path="name" /></td>
  7.                                                 <script type="text/javascript">
  8.                                                         Spring.addDecoration(new Spring.ElementDecoration({
  9.                                                                 elementId : "name",
  10.                                                                 widgetType : "dijit.form.ValidationTextBox",
  11.                                                                 widgetAttrs : {
  12.                                                                         required : true,
  13.                                                                         promptMessage : "${fn:escapeXml(hintName)}",
  14.                                                                         regExp : "[a-zA-Z0-9._%+-]{6,40}"
  15.                                                                 }}));
  16.                                                 </script>
  17.                                         </tr>
  18.                                         <tr>
  19.                                                 <td><label for="begins"><spring:message code="gathering.form.label.begins" />:</label></td>
  20.                                                 <td><form:input path="begins" /> <form:errors path="begins" /></td>
  21.                                                 <script type="text/javascript">
  22.                                                         Spring.addDecoration(new Spring.ElementDecoration({
  23.                                                                 elementId : "begins",
  24.                                                                 widgetType : "dijit.form.DateTextBox",
  25.                                                                 widgetAttrs : {
  26.                                                                         required : true,
  27.                                                                         promptMessage : "${fn:escapeXml(hintBegins)}",
  28.                                                                         datePattern : "dd-MM-yyyy"
  29.                                                                 }}));  
  30.                                                 </script>
  31.                                         </tr>
  32.                                 </tbody>
  33.                         </table>
  34.  
  35.                         <div class="submit">
  36.                                 <spring:message var="cancel" code="button_cancel" htmlEscape="false" />
  37.                                 <spring:message var="proceed" code="button_proceed"     htmlEscape="false" />
  38.                                 <input type="submit" id="cancel" name="_eventId_cancel" value="${fn:escapeXml(cancel)}" />
  39.                                 <input type="submit" id="success" name="_eventId_success" value="${fn:escapeXml(proceed)}" />
  40.                                 <script type="text/javascript">
  41.                                         Spring.addDecoration(new Spring.ValidateAllDecoration({elementId:'success', event:'onclick'}));
  42.                                         Spring.addDecoration(new Spring.AjaxEventDecoration({elementId:'success',event:'onclick',formId:'gathering',params:{fragments:'body'}}));
  43.                                 </script>
  44.                         </div>
  45.                 </form:form>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement