Visualforce onchange event not working?

Simple post here

I had a VF page where the onchange event within a pageBlockTable column cell wasn’t executing

<apex:column headerValue="some hdr">
  <apex:actionRegion >
    <apex:inputField value="{!}">
	<apex:actionSupport event="onChange" rerender="thePageBlockTableId"/>
   <apex:inputField value="{!}" rendered="{! <> 'xyz'}"/>

When I click on the cell for the foo column and change the inputField, the pageBlockTable does not rerender


Problem is that unlike most of Apex and Visualforce, the event attribute values are case sensitive.


replace event="onChange" with event="onchange"

Some additional information on case senstivity in Apex and Visualforce can be found here

Leave a Reply

Your email address will not be published. Required fields are marked *