4 Replies Latest reply on Oct 28, 2009 6:49 PM by mail

    rich: dataTable sortBy modalPanel

    mail

      Hi All.
      I have rich dataTable in a modalPanel with sorting enabled by using sortBy on column.

      Seems like rich:dataTable is not being re-rendered inside modal panel. Sorting works in a normal page.

      Any ideas/solutions? Help is greatly appreciated :).

      Thanks!
      Tathagat

        • 1. Re: rich: dataTable sortBy modalPanel
          nbelaevski

          Hi Tathagat,

          Are there any JS errors when you try to sort it?

          • 2. Re: rich: dataTable sortBy modalPanel
            mail

            Hi there!
            There is no JS error.

            I switched on AJAX log and found 1 warn statement.

            warn[22:10:25,038]: Node for replace by response with id j_id79:j_id84 not found in document


            This corresponds to a rich:message in the same modal panel

            <rich:message for="clientIdForPayments" errorClass="errorMessage" warnClass="warnMessage"/>


            Does that help you in helping me? :).

            Thanks a lot
            Tathagat

            • 3. Re: rich: dataTable sortBy modalPanel
              mail

              This is what I figured out after trial.

              rich:dataTable is inside of an a4j:outputPanel, which uses rendered="{some condition}"

              When I remove rendered clase from the outputpanel, sorting works. When I put it back in, sorting stops working.

              Am I missing something obvious here?

              Thanks again!

              • 4. Re: rich: dataTable sortBy modalPanel
                mail

                It's midnight here (Germany) and so I excuse myself for my stupidity. There was no long running conversation!

                Solved.

                Thanks!