> From: ruben [mailto:[EMAIL PROTECTED] 
> i have a boolean value on my ActionForm represented by a 
> checkbox on the 
> interface, i need that the value of the chekbox was the 
> opposite of the 
> value that i have on my database, what can i do?, i try to change the 
> value on the getter/setter property method, but it seem not to work 
> properly,

If you post some of the code you've tried, someone will probably be able
to help you fix it.

You can prepopulate the ActionForm the usual way, reading from the
database and using BeanUtils.copyProperties(), then go through the
checkboxes and flip them to the opposite value.

Off the top of my head...
   form.setWhatever( (form.getWhatever()?false:true) );
or something like that.

Are you saying that you've done something *within* the get/set method?
I think you only want to flip the value when you pre-populate at the
very beginning, not every time the get/set method is called.

-- 
Wendy Smoak
Application Systems Analyst, Sr.
ASU IA Information Resources Management 

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to