Page 1 of 1

Inserting dynamic columns into <p:summaryRow>

Posted: 08 Dec 2017, 15:19
by IsahannHan
I have a datatable with dynamic columns, and i'm using <p:columns> to list 'em.

Here's a screenshot of what the table looks like:

Image

The first column and the last column are fixed (same thing applied in the summary row), and the three columns in the middle are dynamic columns according to a value list.

In the summary row, the middle column is supposed to be replaced with dynamic columns, the same coming from the value list in the datatable.

I want it to look like this:

Image

The problem is: i haven't found a way to insert dynamic columns in the summary row. I've tried using <p:columns> again, tried <ui:repeat> but it doesn't worked. Is there a workaround solution for this?

I'm using PrimeFaces 6.1 and Ultima 1.1.

Re: Inserting dynamic columns into <p:summaryRow>

Posted: 14 Dec 2017, 13:40
by IsahannHan
It seems like using <c:forEach> from http://java.sun.com/jsp/jstl/core repeated the columns instead of <ui:repeat>. Problem solved.

Re: Inserting dynamic columns into <p:summaryRow>

Posted: 28 Dec 2017, 09:29
by mert.sincan
Glad to hear, thanks a lot for the update!