PageRenderTime 10ms CodeModel.GetById 1ms app.highlight 3ms RepoModel.GetById 1ms app.codeStats 0ms

/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  
 6    <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">
 7    	<p><spring:message code="drools_message" /></p>
 8 	
 9   		
10  	
11        <spring:url value="/web/drools/" var="form_url" />
12    	<form:form name="f" action="${fn:escapeXml(form_url)}" method="POST" modelAttribute="drools" >
13      		<table>
14      		<tr><td>
15        	<strong><spring:message code="drools_name_message" /></strong>
16        	</td>
17        	<td>
18          	<form:input path="name" />
19          	<script type="text/javascript">
20          		 Spring.addDecoration(new Spring.ElementDecoration({	
21              	 elementId : "name",
22              	 widgetType : "dijit.form.ValidationTextBox",
23              	 widgetAttrs : {
24                  	 promptMessage: "Enter Name",
25                  	 required : true}}));
26                  	 
27            </script>
28            <form:input path="description" value="" type="hidden"/>
29            </td><td><form:errors path="name" class="errors"/></td>
30            </tr>
31            <tr><td>
32        	<strong><spring:message code="drools_lastname_message" /></strong>
33        	</td>
34        	<td>
35          	<form:input path="lastName" />
36          	<script type="text/javascript">
37          		 Spring.addDecoration(new Spring.ElementDecoration({	
38              	 elementId : "lastName",
39              	 widgetType : "dijit.form.ValidationTextBox",
40              	 widgetAttrs : {
41                  	 promptMessage: "Enter Last Name",
42                  	 required : true}}));
43                  	 
44            </script>
45            
46            </td><td><form:errors path="lastName" class="errors"/></td>
47            </tr>
48        </table>	
49      	<input dojoType="dijit.form.Button" id="proceed" type="submit" value="submit" label="Submit"/>
50           	<input dojoType="dijit.form.Button" id="reset" type="reset" value="reset" label="Reset"/>
51      	
52      	</form:form>
53      	 <c:if test="${not empty drools.description}">
54
55    		<c:out value="${drools.description }"></c:out>
56    	</c:if>
57    </div>
58   
59
60 
61</div>