I am working on an inquiry program that allows the user to set the select clause of the sql statement. Which means the backing bean has to adapt and creates the t:dataTable object at run time. The thing I don't get - is that the first time a search is done (and therein the page is created), it is displayed w/o any data - tracing shows that this is because the backing bean property that points to the h:panelGroup object is null - so I have nothing to add children to. Subsequent pages get populated and the grid displays. But there is another problem. Clicking the page-forward/end buttons doesn't display the next/last page. I know the event code is firing (traced into it) and the variables are being updated, but the grid's contents never change. I think it has something to do with building the page during the wrong phase, but I'm not sure. I hope someone here can help.
This is using the latest MyFaces and Tomahawk dataTable (org.apache.myfaces.component.html.ext.HtmlDataTable).
This is a snippet of the JSF file where the dynamic part is built.
There is the method that builds the t:dataTable object
pie. tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop