public
Created

Incorrect form Configuration for using tags (embeds 'tag' as field)

  • Download Gist
gistfile1.xml
XML
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<div xmlns:c="http://java.sun.com/jsp/jstl/core"
xmlns:field="urn:jsptagdir:/WEB-INF/tags/form/fields"
xmlns:form="urn:jsptagdir:/WEB-INF/tags/form"
xmlns:jsp="http://java.sun.com/JSP/Page"
xmlns:spring="http://www.springframework.org/tags" version="2.0">
<jsp:directive.page contentType="text/html;charset=UTF-8"/>
<jsp:output omit-xml-declaration="yes"/>
 
<form:create id="fc_com_t_coursemanager_model_Tag" modelAttribute="tag"
path="/tags" render="${empty dependencies}" z="iEN6IpcwJNLAdWyV0NryBgtaoCA=">
<field:textarea
field="description" id="c_com_t_coursemanager_model_Tag_description"
required="true" z="VfNxpepXRMSqsZWFm1V3Dv56/HY="/>
<field:select field="courses"
id="c_com_t_coursemanager_model_Tag_courses" itemValue="id"
items="${courses}" multiple="true" path="/courses" z="8tZwfpWu9u0Ue8afB3hj8Rt5BFA="/>
 
<field:input field="tag" id="c_com_t_coursemanager_model_Tag_tag"
max="25" min="1" required="true" z="S879krSFxEB+VoidxCCA+51q7Co="/>
 
</form:create>
 
<form:dependency dependencies="${dependencies}"
id="d_com_t_coursemanager_model_Tag" render="${not empty dependencies}"
z="1+IvaryYav1iXp7q9gIPlhmFp5c="/>
</div>

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.