2 Replies Latest reply on Aug 27, 2007 9:05 AM by Alexander Kovachev

    ForceRender not working...

    Alexander Kovachev Newbie

      I'm using ForceRender listener in a row of datatable where I give of a command button to rerender certain id's in different h:colmuns and it is not working? Any idea? Here is base code:

      <h:dataTable value="#{someBeanList}" var="item">
       <a4j:commandButton id="aButton" value="item.name" disabled="#{varies}" actionListener="#{someAction}"/>
       <a4j:commandButton value="Edit the 'disabled' attribute value" actionListener="#{edit}" reRender="aButton">
       <a4j:ajaxListener type="org.ajax4jsf.ajax.ForceRender" />

      When I rerender the whole datatable it works but this is not what I want.

        • 1. Re: ForceRender not working...
          Ilya Shaikovsky Master


          <h:dataTable value="#{capitalsBean.capitals}" var="cap" rows="10" id="table" onRowMouseOver="this.style.backgroundColor='#000000'" onRowMouseOut="this.style.backgroundColor='#{a4jSkin.tableBackgroundColor}'">
           <h:commandButton value="Button" disabled="#{cap.checked}" id="button"></h:commandButton>
           <h:selectBooleanCheckbox value="#{cap.checked}">
           <a4j:support event="onchange" reRender="button">
           <a4j:ajaxListener type="org.ajax4jsf.ajax.ForceRender"></a4j:ajaxListener>
           <f:facet name="footer">

          Works as expected for me under
          RF 3.1.0 RC3
          JSf 1.2_04
          Facelets 1.1.12

          Also checked for rich:dataTable. Works fine.

          • 2. Re: ForceRender not working...
            Alexander Kovachev Newbie

            Yes it works indeed! Sorry for bothering you, may be I've mistaken something else before.
            Thank you for the swift reply!