This content has been marked as final.
Show 5 replies
-
1. Re: Does richfaces support dynamic multiple tables
ilya_shaikovsky Jul 27, 2009 8:55 AM (in response to nightwend)yes, and you should use c:forEach or binding instead of repeat..
-
2. Re: Does richfaces support dynamic multiple tables
nightwend Jul 27, 2009 8:59 AM (in response to nightwend)"ilya_shaikovsky" wrote:
yes, and you should use c:forEach or binding instead of repeat..
Could please show me some simple examples or ideas? I am new to richfaces. -
3. Re: Does richfaces support dynamic multiple tables
ilya_shaikovsky Jul 27, 2009 9:05 AM (in response to nightwend)just define forEach instead of repeat in the same way.
-
4. Re: Does richfaces support dynamic multiple tables
nightwend Jul 27, 2009 9:56 AM (in response to nightwend)"ilya_shaikovsky" wrote:
just define forEach instead of repeat in the same way.
Thank you very much.
It works after refer to xmlns:c="http://java.sun.com/jstl/core" in the root element and modified the code to:<c:forEach items="#{MyBean.tables}" var="table"> <rich:dataTable value="#{table.rows}" var="row"> <rich:columns value="#{table.columns}" var="col" index="index"> <f:facet name="header"> <h:outputText value="#{col.title}" /> </f:facet> <h:outputText value="#{row.get(index)}"/> </rich:columns> </rich:dataTable> <br /> <br /> </c:forEach>
-
5. Re: Does richfaces support dynamic multiple tables
simonkelly Dec 2, 2009 9:56 AM (in response to nightwend)I also want to display a page with multiple dynamic tables, with varying columns and was experiencing the same problems. I successfully rewrote the repeat tag as a c:foreach as suggested but now I lose the ability to rerender the page without a full, and unacceptably expensive, view refresh. So I am looking for an alternative solution which would allow me to display multiple dynamic tables while also being able to do a targetted refresh of the page's content. Any suggestions? You mentioned binding as an alternative approach, can you specify this?