I have a series of checkboxes within a pageBlock. For design reasons, I'd like to keep the checkboxes checked when the pageBlock is re-rendered. Is this possible?

  • You can enclose your components in different containers (e.g. pageblocksection) and rerender only the block sections you want to rerender and not the checkbox. Nov 11, 2015 at 23:19
  • Is it possible to rerender html component ids? Or is the rerender attribute limited to apex block component ids? Nov 11, 2015 at 23:40
  • @AlexBrigham - you can wrap html components in a output panel with a layout="inline" for a span instead of layout="block" for a div
    – Eric
    Nov 12, 2015 at 0:24
  • 1
    @AlexBrigham the rules is "Visualforce cannot re-render any element that is not managed by the view state." ... you can use apex:outputPanel to resolve your issues instead of div. This post might be helpful salesforce.stackexchange.com/questions/13348/… Nov 12, 2015 at 2:06


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.