I finally realized that I needed to set "fieldvalue=true" to get my checkbox to propertly set the boolean on my object (using ModelDriven). Now I'm having an even more annoying problem. Once I set it to true and it gets saved to the database, I can't uncheck it anymore! In ParametersInterceptor, if the checkbox is unchecked, then it doesn't even show up in the parameter map, so it doesn't get set to false.

I am aware this is normal web browser behaviour (that they only send the checkboxes that are checked). Do I need to explicitly check for this scenario in the Action? It seems very unwebworky to have to dip into the ActionContext to check if the parameter is there.

Any ideas?
Anoop



-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive?  Does it
help you create better code?  SHARE THE LOVE, and help us help
YOU!  Click Here: http://sourceforge.net/donate/
_______________________________________________
Opensymphony-webwork mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork

Reply via email to