One of them, is the OnChange event for the <apex:inputCheckbox> tag. When a checkbox is checked or uncheck it generates the OnChange event, but only after the user selects a different input element in the page, after the checkbox loses its focus.
A better user experience could be achieved if the checkbox fired its event without waiting for the focus to be lost. This can be easily achieved using the OnClick event:
VisualForce code:
<apex:inputCheckbox onClick="{!SomeMethod}" />
No comments:
Post a Comment