You need to sign in to do that
Don't have an account?
Gobbledigook
Unchecking selectcheckboxes through Apex
Hello there,
I'm currently working with a dynamic selectcheckboxes list in Visualforce, and I need to uncheck the checked boxes through Apex whenever a commandbutton is pressed. I figure it might have something to do with selectOptions list, but I'm not certain.
Any ideas or help would be appreciated.
Nevermind. Got it to work.
Turns out that trying to manipulate SelectOptions is actually the 100% wrong thing to do.
And in actuality, it's very simple in its execution: Since the getters and setters are "controlling" the selectoptions list, basically what you have to do is clear the constructor itself, rerender the part of the page that will call the list, repopulating it with empty values.