这个是add.html.vm页面 判断column为日期类型生成相应日期控件的代码,貌似无效求指点。。。。。
#if ($column.isBoolean())
<form:select path="${column.FieldName}" class="${column.ValidationFormClass}" placeholder="$temp">
<form:option value="true">${msg['globals.table.column.true']}</form:option>
<form:option value="false">${msg['globals.table.column.false']}</form:option>
</form:select>
#elseif ($column.isDate())
<div class="input-group date form_date" data-date="1979-09" data-date-format="MM yyyy" data-link-field="${column.FieldName}">
<input type="text" size="16" readonly class="form-control" value=" " data-date-format=" MM yyyy" data-parsley-required="true">
<span class="input-group-addon"><span class="glyphicon glyphicon-remove"></span></span>
<span class="input-group-addon"><span class="glyphicon glyphicon-th"></span></span>
</div>
<input type="hidden" id="${column.FieldName}" name="${column.FieldName}" value="${@date.getDate()}" />
#else
<input type="text" id="${column.FieldName}" class="form-control" name="${column.FieldName}" data-parsley-required="true" placeholder="$temp">
#end
</div>