+ Start a Discussion
Mak OneMak One 

How to get values in Controller without submitting form?

I have a list of checkboxes in Visualforce Page.
I want that if no checkbox is checked then automatically submit button will be disabled and if use checks any them it should be enabled to click.
This has to take effect as soon as user deselect or select any checkbox.
Can this be done without using JavaScript? Through the Controller?
Best Answer chosen by Mak One
kiranmutturukiranmutturu
Yes you can acheive this with out javascript but its a bit expensive.. on every select you need to call a method using apex:actionSupport with or with out ajax  and set a flag true/false based on the selection...

All Answers

kiranmutturukiranmutturu
Yes you can acheive this with out javascript but its a bit expensive.. on every select you need to call a method using apex:actionSupport with or with out ajax  and set a flag true/false based on the selection...
This was selected as the best answer
Ramesh KallooriRamesh Kalloori
use action support for the above.

<apex:inputCheckbox >
<apex:actionSupport event="onchange" action="{!Go}"/>
</apex:inputCheckbox>

thanks,
RAmesh