On 7/13/06, Dennis Gesker <[EMAIL PROTECTED]> wrote:
Let me clarify that last question. In all the dataTables in my present
application they are populated by Collections

Collection <SomeKindOfObject> SomeKindOfCollection

My thinking was that if I could access the HtmlOutputText of the table
rows I wouldn't have to know what kind of object was used to populate my
Collection. Also, In this way I could also look to see if the column was
rendered or not and if it wasn't I could exclude that column from my
loop and not include it in the new table on the new page (excel doc really).

Also, if I didn't have to know the object I could use the method over
and over for all my dataTables.

Is my thinking correct or am I driving down the wrong road? Is it at all
possible to directly access the HtmlOutputText objects in the rows of an
HtmlDataTable?

Yes, it's possible.  You can set a binding to your HtmlOutputText
object.   You can follow the children of the UIData and drill down to
it that way as well.

However, there's only one HtmlOutputText component for all of your
data.  Flypaper pattern.   So for the component to have a valid value,
you'll need to iterate over the UIData rows.   I think you can do this
simply by calling UIData.setRowIndex(row), but you'll want to be sure
to reset it back to -1 after you're finished.

-Mike

Reply via email to