4 Replies Latest reply on Nov 25, 2008 10:36 AM by Ilya Shaikovsky

    Problems to reRender a columnGroup (there's no id)

    Flavio Henrique Newbie

      Hi there!

      After some debugging (using Firebug) I noticed that my r:columnGroup don't have an Id, even when I explicity type one. So I can't use reRender='myColumnGroupId'.

      I tried javascript too, but without Id I don't know how to access my component.

      I can see the auto generated id for r:column, but not for r:columnGroup. Someone has an idea why this happens?

      What I'm trying: hide/show a columnGroup from h:selectOneMenu onchange event.

      my code:

      <r:columnGroup>
       <r:column>
       <h:selectOneMenu value="#{myBean.propertyName}">
       ...
       <a4j:support event="onchange" reRender="columnGroupId" />
       </h:selectOneMenu>
       </r:column>
      </r:columnGroup>
      
      <r:columnGroup id="columnGroupId" rendered="#{myBean.propertyName} == 'A'">
       ...
      </r:columnGroup>