Issue Details (XML | Word | Printable)

Key: DISPL-379
Type: Bug Bug
Status: Resolved Resolved
Resolution: Fixed
Priority: Major Major
Reporter: Anthony Gerrard
Votes: 3
Watchers: 4
Operations

If you were logged in you would be able to see more operations.
DisplayTag

Grouping is performned by default if you don't define any columns

Created: 25/Jul/06 05:32 AM   Updated: 27/Dec/08 04:23 AM   Resolved: 27/Dec/08 04:23 AM
Return to search
Component/s: Tag Library
Affects Version/s: 1.1
Fix Version/s: 1.2

Time Tracking:
Not Specified

File Attachments: 1. File ColumnGroup.jsp (1 kB)
2. Text File DISPL-379.patch (0.5 kB)


Application server: oc4j 9.0.4


 Description  « Hide
Steps:
* Define a table but don't define any columns
* The columns are grouped as if you've specified group=1 etc on each of the columns

This did not happen in version 1.0 and is contrary to the documentation for display:column "If this attribute is not included, then no grouping is performed."

See attached for jsp to reproduce the error.

I'm using no columns for a page that runs user defined sql reports. I could specify the columns by iterating over the first row but don't want to as its more code and this used to work fine.

Jeremy Blythe added a comment - 06/Aug/06 10:14 AM
I have this problem too. You can workaround this problem with a decorator that sets the group to -1 for all the HeaderCells like this:
{code}
    public void init(PageContext context, Object decorated, TableModel tableModel)
    {
        super.init(context, decorated, tableModel);

        for (Iterator it = tableModel.getHeaderCellList().iterator(); it.hasNext();) {
            HeaderCell cell = (HeaderCell) it.next();
            cell.setGroup(-1);
        }
    }
{code}

Antony Stubbs added a comment - 07/Jun/07 01:28 AM
I hit this issue straight away - first time using the library. Quite off putting as it seemed to output rubbish. I was about to throw it out straight away when i thought I'd just browse the bug log - and look what I found!

Michael Osipov added a comment - 01/Dec/08 07:57 AM
I ran into this problem last week too. Well, the problem ist extremely easy to fix. Don't unterstand why no one of you took it on.

Michael Osipov added a comment - 01/Dec/08 07:58 AM
Patched against tag 1.1.1

fabrizio giustina added a comment - 27/Dec/08 04:23 AM
Patch added to 1.2, thanks