-
1. Re: Newspaper table
amitev Jul 29, 2007 7:20 AM (in response to amitev)There is a 'columns' property, but it does't seem to work for me.
Here is my sample code<rich:dataTable columns="2" style="border: none;" cellpadding="3" cellspacing="3" var="proj" value="#{projects}"> <rich:column style="border: none;"> <rich:panel style="width: 100%"> <f:facet name="header"> <s:link value="#{proj.name}" action="#{projectAction.selectProject(proj)}" /> </f:facet> #{proj.description} </rich:panel> </rich:column> </rich:dataTable>
-
2. Re: Newspaper table
sergeysmirnov Jul 29, 2007 11:04 AM (in response to amitev)why you just do not use rich:dataGrid ?
-
3. Re: Newspaper table
amitev Jul 29, 2007 1:58 PM (in response to amitev)Cause it does not have rows attribute. I don't see how i'll use scroller with it.
-
-
5. Re: Newspaper table
ishabalov Jul 30, 2007 4:00 PM (in response to amitev)Adrian, please can you explain how you going to use rows with DataGrid? May be simple PanelGrid can serve the purpose?
Data Grid is a sequence of items that placed in a grid with given numbers of columns and as many rows as you need. -
6. Re: Newspaper table
amitev Jul 30, 2007 4:05 PM (in response to amitev)Simple panelGrid won't do the job. I need something like this: http://www.irian.at/myfaces/newspaperTable.jsf
-
7. Re: Newspaper table
amitev Jul 30, 2007 4:06 PM (in response to amitev)I need rows property for pagination.
-
8. Re: Newspaper table
ishabalov Jul 30, 2007 5:14 PM (in response to amitev):-)
In DataGrid there is an attribute called "elements"
I guess this is what you need: it define total number of data elements that will be displayed on the Grid. Together with attribute "first" it enables pagination. -