-
1. Re: My Datatable missing rows
sergeysmirnov Mar 5, 2009 7:06 PM (in response to liyer)datatable, scrollableDataTable, extendedDataTable are iterators. Nothing to iterate, nothing is displayed.
-
2. Re: My Datatable missing rows
rschoeler Mar 6, 2009 1:55 AM (in response to liyer)Hi Lak, just put in var and value attributes, provide an empty list and everything should work
Have a look at the following example, if you don't know how:
http://livedemo.exadel.com/richfaces-demo/richfaces/dataTable.jsf?c=dataTable&tab=usage
regards
rschoeler -
3. Re: My Datatable missing rows
liyer Mar 6, 2009 9:52 AM (in response to liyer)This is the code that led me to strip all variables and make it static. This doesn't display any rows either!! There is a lot of data actually, I can see it when I change datatable to dataGrid. But I need the dataTable.
Hits is <List <List < String > >.
Please, help!
<ui:composition template="/WEB-INF/template/common.htm"
xmlns="http://www.w3.org/1999/xhtml"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:jdsu="http://jdsu.com/jsf"
xmlns:ui="http://java.sun.com/jsf/facelets"
xmlns:s="http://jboss.com/products/seam/taglib"
xmlns:rich="http://richfaces.org/rich"
xmlns:c="http://java.sun.com/jstl/core"
xmlns:a4j="http://richfaces.org/a4j">
<ui:define name="pageParameters"></ui:define>
<ui:define name="contentRightColumn">
<a4j:form>
<rich:simpleTogglePanel id="result" switchType="client">
<f:facet name="header">Search Results</f:facet>
<h:form>
<rich:dataTable id="resTable" value="#{SearchBean.hits}" var="match" width="750">
<f:facet name="header">Matches Returned</f:facet>
<rich:columns value="#{match}" var="element" rowKeyVar="index" columns="#{match.size}">
<s:link ....>
<f:param .../>
</s:link>
</rich:columns>
</rich:dataTable>
</h:form>
</rich:simpleTogglePanel>
</a4j:form>
</ui:define>
</ui:composition> -
4. Re: My Datatable missing rows
nbelaevski Mar 6, 2009 10:27 AM (in response to liyer)Hello,
This won't work. rich:columns documentation contains a special note about this case: http://www.jboss.org/file-access/default/members/jbossrichfaces/freezone/docs/devguide/en/html/columns.html -
5. Re: My Datatable missing rows
liyer Mar 6, 2009 1:16 PM (in response to liyer)I was not getting any kind of exception with the above code.
I'm not sure how the c:forEach would give me a dataTable. Anyways, I tried replacing the dataTable with forEach and got a ServletException.
Thank your for all your responses. My problem is still not resolved. Are there any workarounds for this? -
6. Re: My Datatable missing rows
nbelaevski Mar 6, 2009 2:45 PM (in response to liyer)Try value="#{bean.columns}" where bean.columns is a predefined collection of columns, e.g. ["Column1", "Column2", "Column3", etc.]. Also you can take a look at the livedemo example.