Sha256: b994aa6b0635eb89c8b7428fe0437dd8cfa8bbe438e578adf9e2a981d55a3c32

Contents?: true

Size: 755 Bytes

Versions: 2

Compression:

Stored size: 755 Bytes

Contents

<c:if test="${not empty errors}">
	<c:forEach items="${errors}" var="error">
		${error.category} - ${error.message}<br />
	</c:forEach>
</c:if>

<form action="${pageContext.request.contextPath}/products" method="post">
  
	<c:if test="${not empty product.id}">
		<input type="hidden" name="product.id" value="${product.id}"/>
		<input type="hidden" name="_method" value="put"/>
	</c:if>

	<div class="field">
		Name:<br />
		<input type="text" name="product.name" value="${product.name}"/>
	</div>
	<div class="field">
		My flag:<br />
		<input type="text" name="product.myFlag" value="${product.myFlag}"/>
	</div>

<div class="actions">
	<button type="submit">send</button>
	</div>
</form>

<a href="${pageContext.request.contextPath}/products">Back</a>

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
vraptor-scaffold-1.3.0.rc spec/vraptor-scaffold/generators/scaffold/jsp_generator/templates/form.jsp
vraptor-scaffold-1.2.3 spec/vraptor-scaffold/generators/scaffold/jsp_generator/templates/form.jsp