8 Replies Latest reply on Mar 31, 2010 10:24 AM by Robert Seely

    dynamic dataTable, ajax4jsf, and reRendering

    Robert Seely Newbie

      Hello!  I have a rich dataTable that's defined inside of an a4j:outputPanel, and that's bound to a session-scoped backing bean that creates the HtmlDataTable.  By itself, that part of my code is working fine, and the dataTable looks good.

       

      On another part of the page, there are some basic text links that I'm creating as a4j:commandLinks, and when those are clicked, the dataTable should be re-rendered with new row and column data.  The row data's updating fine, but the column data (header text, width, etc.) isn't.

       

      After digging around the code for a bit, it seems that the call to the backing bean for the HtmlDataTable isn't being made during the reRendering of that table, but it is reRendered if the whole page is reloaded; so it seems that it's just the ajax4jsf/reRendering portion that's biting me here.

       

      Is there any way that I can force the reRender process to invalidate the dataTable structure so that it will call the backing bean again for it?

       

      If it means anything, I'm also using Seam; so if there's a solution to be found using it, that'd be helpful, too.

       

      Thanks!

      Robert