1
- <#ftl strip_whitespace=true >
1
+ <#ftl output_format="HTML" strip_whitespace=true >
2
2
<#--
3
3
* spring.ftl
4
4
*
157
157
-->
158
158
<#macro formInput path attributes="" fieldType="text" >
159
159
<@bind path/ >
160
- <input type =" ${fieldType}" id =" ${status.expression?replace('[','')?replace(']','')}" name =" ${status.expression}" value =" <#if fieldType!=" password " >${stringStatusValue}</#if>" ${attributes} <@closeTag />
160
+ <input type =" ${fieldType}" id =" ${status.expression?replace('[','')?replace(']','')}" name =" ${status.expression}" value =" <#if fieldType!=" password " >${stringStatusValue}</#if>" ${attributes?no_esc } <@closeTag />
161
161
</#macro >
162
162
163
163
<#--
202
202
-->
203
203
<#macro formTextarea path attributes="" >
204
204
<@bind path/ >
205
- <textarea id =" ${status.expression?replace('[','')?replace(']','')}" name =" ${status.expression}" ${attributes} >
205
+ <textarea id =" ${status.expression?replace('[','')?replace(']','')}" name =" ${status.expression}" ${attributes?no_esc } >
206
206
${stringStatusValue} </textarea >
207
207
</#macro >
208
208
@@ -219,14 +219,14 @@ ${stringStatusValue}</textarea>
219
219
-->
220
220
<#macro formSingleSelect path options attributes="" >
221
221
<@bind path/ >
222
- <select id =" ${status.expression?replace('[','')?replace(']','')}" name =" ${status.expression}" ${attributes} >
222
+ <select id =" ${status.expression?replace('[','')?replace(']','')}" name =" ${status.expression}" ${attributes?no_esc } >
223
223
<#if options?is_hash >
224
224
<#list options?keys as value >
225
- <option value =" ${value?html }" <@checkSelected value />>${options[value]?html } </option >
225
+ <option value =" ${value}" <@checkSelected value />>${options[value] } </option >
226
226
</#list >
227
227
<#else >
228
228
<#list options as value >
229
- <option value =" ${value?html }" <@checkSelected value />>${value?html } </option >
229
+ <option value =" ${value}" <@checkSelected value />>${value} </option >
230
230
</#list >
231
231
</#if >
232
232
</select >
@@ -245,10 +245,10 @@ ${stringStatusValue}</textarea>
245
245
-->
246
246
<#macro formMultiSelect path options attributes="" >
247
247
<@bind path/ >
248
- <select multiple =" multiple" id =" ${status.expression?replace('[','')?replace(']','')}" name =" ${status.expression}" ${attributes} >
248
+ <select multiple =" multiple" id =" ${status.expression?replace('[','')?replace(']','')}" name =" ${status.expression}" ${attributes?no_esc } >
249
249
<#list options?keys as value >
250
250
<#assign isSelected = contains(status.actualValue?default(["" ]), value)>
251
- <option value =" ${value?html }" <#if isSelected > selected="selected"</#if >>${options[value]?html } </option >
251
+ <option value =" ${value}" <#if isSelected > selected="selected"</#if >>${options[value] } </option >
252
252
</#list >
253
253
</select >
254
254
</#macro >
@@ -269,8 +269,8 @@ ${stringStatusValue}</textarea>
269
269
<@bind path/ >
270
270
<#list options?keys as value >
271
271
<#assign id="${status.expression?replace('[','')?replace(' ]','')}${value_index} ">
272
- <input type =" radio" id =" ${id}" name =" ${status.expression}" value =" ${value?html }" <#if stringStatusValue == value > checked="checked"</#if > ${attributes} <@closeTag/ >
273
- <label for =" ${id}" >${options[value]?html } </label >${separator}
272
+ <input type =" radio" id =" ${id}" name =" ${status.expression}" value =" ${value}" <#if stringStatusValue == value > checked="checked"</#if > ${attributes?no_esc } <@closeTag/ >
273
+ <label for =" ${id}" >${options[value] } </label >${separator}
274
274
</#list >
275
275
</#macro >
276
276
@@ -291,8 +291,8 @@ ${stringStatusValue}</textarea>
291
291
<#list options?keys as value >
292
292
<#assign id="${status.expression?replace('[','')?replace(' ]','')}${value_index} ">
293
293
<#assign isSelected = contains(status.actualValue?default(["" ]), value)>
294
- <input type =" checkbox" id =" ${id}" name =" ${status.expression}" value =" ${value?html }" <#if isSelected > checked="checked"</#if > ${attributes} <@closeTag/ >
295
- <label for =" ${id}" >${options[value]?html } </label >${separator}
294
+ <input type =" checkbox" id =" ${id}" name =" ${status.expression}" value =" ${value}" <#if isSelected > checked="checked"</#if > ${attributes?no_esc } <@closeTag/ >
295
+ <label for =" ${id}" >${options[value] } </label >${separator}
296
296
</#list >
297
297
<input type =" hidden" name =" _${status.expression}" value =" on" />
298
298
</#macro >
@@ -311,7 +311,7 @@ ${stringStatusValue}</textarea>
311
311
<#assign id="${status.expression?replace('[','')?replace(' ]','')}">
312
312
<#assign isSelected = status.value?? && status.value?string=="true" >
313
313
<input type =" hidden" name =" _${status.expression}" value =" on" />
314
- <input type =" checkbox" id =" ${id}" name =" ${status.expression}" <#if isSelected > checked="checked"</#if > ${attributes} />
314
+ <input type =" checkbox" id =" ${id}" name =" ${status.expression}" <#if isSelected > checked="checked"</#if > ${attributes?no_esc } />
315
315
</#macro >
316
316
317
317
<#--
0 commit comments