Oh! you mentioned about setting a footer to the column? I was thinking about the table footer as Aaron mentioned. I have to try how this works.
Thanks -----Original Message----- From: Broekelmann, Mathias [mailto:[EMAIL PROTECTED] Hi, You should use a footer for the last "row". Just use the footer facet like the facet for the header. Donīt place the object "Y" into the the datamodel but access it through a managed bean which may also hold the datamodel with the rows. A short example: <h:datatable value="#{data.rowValues}" var="row"> <h:column> <f:facet name="footer"> <h:outputText value="#{data.stringValueY}" /> </f:facet> <h:outputText value="#{row.stringValueX}" /> </h:column> <h:column> <f:facet name="footer"> <h:selectOneListBox value="#{data.listBoxValueY}" > <f:selectItems value="#{data.selectItemsY}" /> </h:selectOneListBox> </f:facet> <h:selectBooleanCheckbox value="#{row.booleanValueX}" /> </h:column></h:datatable> </h:datatable> Hope that helps Mathias > -----Original Message----- > From: Srikanth Madarapu [mailto:[EMAIL PROTECTED] > Sent: Wednesday, April 06, 2005 3:29 PM > To: My Faces Discussion (E-mail) > Subject: extra row in a datatable > > > Hi > > I have a <x:datatable> with a ListDataModel. The list data > model has objects of type say "X". I would like to add an > additional row to the table, at the end, after all the > objects in the list are rendered. I cannot add that > additional row to the list because the additional row comes > from a different object type "Y". Sounds weird, but is that > possible ? If yes how ? > > The datatable has two columns, first is a String and the > second is a boolean (check box). In the last row I need to > have String in the first column and a drop down list > (SelectOneListBox) in the second column. > > Thanks in advance. > > -Srikanth Madarapu > >