[ http://jira.codehaus.org/browse/DISPL-379?page=comments#action_71705 ] 
            
Jeremy Blythe commented on DISPL-379:
-------------------------------------

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}

> Grouping is performned by default if you don't define any columns
> -----------------------------------------------------------------
>
>                 Key: DISPL-379
>                 URL: http://jira.codehaus.org/browse/DISPL-379
>             Project: DisplayTag
>          Issue Type: Bug
>          Components: Tag Library
>    Affects Versions: 1.1
>            Reporter: Anthony Gerrard
>             Fix For: 1.1
>
>         Attachments: ColumnGroup.jsp
>
>
> 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.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
displaytag-devel mailing list
displaytag-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/displaytag-devel

Reply via email to