Hey guys, I originally posted this over on the MyFaces user list, but I think now that it might be more appropriate to ask here. http://www.mail-archive.com/[email protected]/msg20357.html
Background: My setup consists of JSF (Apache MyFaces), using Beehive Pageflows as my controller. I'm trying to construct a JSF DataTable (actually, I'm using Tomahawk), and have a problem where I want to construct a datatable, whereby each row in that datatable has a column which itself has several 'sub-rows.' The issue I have, is that I cannot have a user click on a button or a link to generate an action and insert the data into the datatable for a given row; instead, I need all the data for the column that has multiple 'sub-rows' to be displayed when the datatable is first created. Question: Essentially, what I'm asking is: how can I access an attribute corresponding to the current row of a datatable as it is constructed, so that for each datatable row, I can call a backing bean method that will return a dynamically generated set of data (sub-rows)? A user on the MyFaces list showed that he was using Shale, and Shale has a method allowing him to access the current datatable row attributes before the page is finally rendered. Could someone shed some light on how I might go about doing this? Is the current page context available to the backing bean even as components are being rendered? If I were able to access data within 'current datatable row,' I could then use either a nested datatable, panelgrid, or similar construct, but getting the data to put into those components is causing me much grief. _____________________________________ TR
