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.– Amr IbrahimNov 11, 2015 at 23:19
-
Is it possible to rerender html component ids? Or is the rerender attribute limited to apex block component ids?– Alex BrighamNov 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– EricNov 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/…– Amr IbrahimNov 12, 2015 at 2:06