0

I have a check box, on which a datatable id is given as rerender. Here is the complete tag of the check box from JSP-

<h:selectBooleanCheckbox id="A_IsDefaultSpouseAnnutant"
    value="#{XXXXXX.a_IsDefaultSpouseAnnutant}">
    <a4j:support actionListener="#{XXXXXX.changeVisibility}" ajaxSingle="true"
        event="onclick" immediate="true" reRender="benListTable"/>
</h:selectBooleanCheckbox>

My expectation is that on clicking on the check box, the datatable below should rerender and show the changed values. But the changes are not effective until I manually refresh the page. I searched over internet for any causes of this problem but couldn't find any. Any ehlp would be greatly helpful.

Note: The table is disabled when I am trying to reRender. Does JSF reRender disabled elements?

sgowd
  • 2,242
  • 22
  • 29
  • What happens if you reRender the parent component of the `DataTable` instead of the table itself? – Arjan Tijms Sep 23 '12 at 10:01
  • Parent component? Example? Also please see my edit. – sgowd Sep 23 '12 at 10:32
  • A parent component is the component of which the datatable is a child, e.g. in which the datatable is nested. If you don't have an obvious one, just wrap it into a `panelGroup`. Does the re-rendering always work exactly after the 3rd time? Or is it sometimes the 4th time, and sometimes the 8th time, etc? – Arjan Tijms Sep 23 '12 at 11:19
  • it always works exactly after 3rd time. – sgowd Sep 23 '12 at 11:38
  • What happens if you build a simpler example with just the select box and action listener, without all the javascript in the `onsubmit` handler? *(for the example here, remove the styling as well, that's a lot of noise that potential answerers may not feel like to wade through)* – Arjan Tijms Sep 23 '12 at 11:45
  • I tried removing all those extra properties, still, it isn't working. – sgowd Sep 23 '12 at 11:55
  • Are you using JSF 1.2 or JSF 2.x? – Luiggi Mendoza Sep 23 '12 at 18:22

0 Answers0