• sheen
  • NEWBIE
  • 0 Points
  • Member since 2013

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 0
    Questions
  • 1
    Replies

I'm trying to do something similar to what's been posted here and have literally copied the code without success. To summarize, I'm trying to rerender fields (or a pageBlockSection) when I check an inputCheckbox using apex:actionsupport. 

 

Here's the VF (taken from the referenced thread):

 

 <apex:pageBlockSection id="debugBlock" rendered="{!IF(test2 == true,true,false)}" >
         Checked
 </apex:pageBlockSection>
 <apex:inputCheckbox value="{!test2}">
        <apex:actionsupport event="onchange" rerender="debugBlock" />     
 </apex:inputCheckbox>

 

I've also tried with rendered="{!test2}" and had no luck.

 

Here's the controller code:

 

public boolean test2 {get; set;}

Pretty strange considering almost identical code worked in the previous thread. Any help is greatly appreciated. 

 

Thanks,

Dylan