Thanks. This is what I actually thought, as you both suggested, but I cannot specify the styleclass for the facet and that extra row will look very different from all the other rows. If I use a panel inside the facet, I have to, to have two columns, the columns will not align properly.
May be if I use fixed width columns it works. Thanks for the input. Srikanth -----Original Message----- From: Broekelmann, Mathias [mailto:[EMAIL PROTECTED] Sent: Wednesday, April 06, 2005 9:43 AM To: MyFaces Discussion Subject: RE: extra row in a datatable 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 > >

