Hi,
I have a checkbox in my ..._single.jsp. If I uncheck the checkbox, the value
is not sent via http, thus it is not set in the fieldValues, thus it is not
updated (next time the checkbox is still checked).
what about using the attribute novalue
value that should be used if check box is not checked
It's in the taglib docs
<db:checkbox fieldName="yesNo" novalue="false" value="yes" checked="true"/>
Then if the box is not checked, "false" or whatever you specify will be updated into the database.
I am not using it myself but I believe I saw a solution for this common problem in one of the release notes and think this was it.
That's a common
problem
in
web-applications. In Struts for example I "uncheck" all checkbox-values in
the Form.reset() method.
I could use the a specific interceptor for my table and implement the
preUpdate() method, cheking every single column. I would like to do it in a generic
way because I have dozens of tables and fields.
Do you see to implement that in a generic way?
Cheers, Jan.
-- Shawn
Happily using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/
------------------------------------------------------- This SF.net email is sponsored by OSDN developer relations Here's your chance to show off your extensive product knowledge We want to know what you know. Tell us and you have a chance to win $100 http://www.zoomerang.com/survey.zgi?HRPT1X3RYQNC5V4MLNSV3E54 _______________________________________________ DbForms Mailing List
http://www.wap-force.net/dbforms
