Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <form:form modelAttribute="gathering">
- <table>
- <tbody>
- <tr>
- <td><label for="name"><spring:message code="gathering.form.label.name" />:</label></td>
- <td><form:input path="name" maxlength="40" /> <form:errors path="name" /></td>
- <script type="text/javascript">
- Spring.addDecoration(new Spring.ElementDecoration({
- elementId : "name",
- widgetType : "dijit.form.ValidationTextBox",
- widgetAttrs : {
- required : true,
- promptMessage : "${fn:escapeXml(hintName)}",
- regExp : "[a-zA-Z0-9._%+-]{6,40}"
- }}));
- </script>
- </tr>
- <tr>
- <td><label for="begins"><spring:message code="gathering.form.label.begins" />:</label></td>
- <td><form:input path="begins" /> <form:errors path="begins" /></td>
- <script type="text/javascript">
- Spring.addDecoration(new Spring.ElementDecoration({
- elementId : "begins",
- widgetType : "dijit.form.DateTextBox",
- widgetAttrs : {
- required : true,
- promptMessage : "${fn:escapeXml(hintBegins)}",
- datePattern : "dd-MM-yyyy"
- }}));
- </script>
- </tr>
- </tbody>
- </table>
- <div class="submit">
- <spring:message var="cancel" code="button_cancel" htmlEscape="false" />
- <spring:message var="proceed" code="button_proceed" htmlEscape="false" />
- <input type="submit" id="cancel" name="_eventId_cancel" value="${fn:escapeXml(cancel)}" />
- <input type="submit" id="success" name="_eventId_success" value="${fn:escapeXml(proceed)}" />
- <script type="text/javascript">
- Spring.addDecoration(new Spring.ValidateAllDecoration({elementId:'success', event:'onclick'}));
- Spring.addDecoration(new Spring.AjaxEventDecoration({elementId:'success',event:'onclick',formId:'gathering',params:{fragments:'body'}}));
- </script>
- </div>
- </form:form>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement