jsp - Spring MVC and tiles -- how to set non-boolean "true/false" to checkbox -


i have web application end table has column called type , column called value. type indicates components type (textfield, combobox, checkbox..etc), value actual value of component, both columns varchar2.

the challenge is, when type combobox, value of component either true or false in string. , have no privilege modify database attribute.

then when put checkbox on front end:

<field:checkbox field="enableediting.setting" id="systemsetting_${formsettings.enableediting.name}" z="user-managed"/> 

i following exception:

attribute 'value' required when binding non-boolean values 

even make value attribute in checkbox.tagx,

<field:checkbox field="enableediting.setting" id="systemsetting_${formsettings.enableediting.name}" value="${formsettings.enableediting.setting}" z="user-managed"/> 

i still have same exception.

it seems if field not boolean type, there no way make checkbox work.

but know must break something, please enlighten me , in advance.


Comments

Popular posts from this blog

c# - SVN Error : "svnadmin: E205000: Too many arguments" -

c++ - Using OpenSSL in a multi-threaded application -

All overlapping substrings matching a java regex -