0

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?

4
  • 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. – Amr Ibrahim Nov 11 '15 at 23:19
  • Is it possible to rerender html component ids? Or is the rerender attribute limited to apex block component ids? – Alex Brigham Nov 11 '15 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 '15 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/… – Amr Ibrahim Nov 12 '15 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.