/jcg-andygene-web-archetype/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/views/drools/drools.jspx

http://jcg-andygene-web.googlecode.com/ · Unknown · 61 lines · 49 code · 12 blank · 0 comment · 0 complexity · 7be6b913a7a1a8fe229bf3c79276ddcf MD5 · raw file

  1. <?xml version="1.0" encoding="UTF-8" standalone="no"?>
  2. <div id="body" xmlns:jsp="http://java.sun.com/JSP/Page" xmlns:fn="http://java.sun.com/jsp/jstl/functions" xmlns:c="http://java.sun.com/jsp/jstl/core" xmlns:spring="http://www.springframework.org/tags" xmlns:form="http://www.springframework.org/tags/form" version="2.0" dojoType="dijit.layout.ContentPane" region="center" splitter="true">
  3. <jsp:directive.page contentType="text/html;charset=UTF-8" />
  4. <jsp:output omit-xml-declaration="yes" />
  5. <div id="jmsformbody" dojoType="dijit.form.Form" region="center" splitter="false" style="text-align: center;position: absolute;top: 100px;left: 100px;width:200px;height:200px">
  6. <p><spring:message code="drools_message" /></p>
  7. <spring:url value="/web/drools/" var="form_url" />
  8. <form:form name="f" action="${fn:escapeXml(form_url)}" method="POST" modelAttribute="drools" >
  9. <table>
  10. <tr><td>
  11. <strong><spring:message code="drools_name_message" /></strong>
  12. </td>
  13. <td>
  14. <form:input path="name" />
  15. <script type="text/javascript">
  16. Spring.addDecoration(new Spring.ElementDecoration({
  17. elementId : "name",
  18. widgetType : "dijit.form.ValidationTextBox",
  19. widgetAttrs : {
  20. promptMessage: "Enter Name",
  21. required : true}}));
  22. </script>
  23. <form:input path="description" value="" type="hidden"/>
  24. </td><td><form:errors path="name" class="errors"/></td>
  25. </tr>
  26. <tr><td>
  27. <strong><spring:message code="drools_lastname_message" /></strong>
  28. </td>
  29. <td>
  30. <form:input path="lastName" />
  31. <script type="text/javascript">
  32. Spring.addDecoration(new Spring.ElementDecoration({
  33. elementId : "lastName",
  34. widgetType : "dijit.form.ValidationTextBox",
  35. widgetAttrs : {
  36. promptMessage: "Enter Last Name",
  37. required : true}}));
  38. </script>
  39. </td><td><form:errors path="lastName" class="errors"/></td>
  40. </tr>
  41. </table>
  42. <input dojoType="dijit.form.Button" id="proceed" type="submit" value="submit" label="Submit"/>
  43. <input dojoType="dijit.form.Button" id="reset" type="reset" value="reset" label="Reset"/>
  44. </form:form>
  45. <c:if test="${not empty drools.description}">
  46. <c:out value="${drools.description }"></c:out>
  47. </c:if>
  48. </div>
  49. </div>