[ http://jira.codehaus.org/browse/DISPL-151?page=comments#action_46851 ] 

Guillaume Boudreau commented on DISPL-151:
------------------------------------------

See my comment in http://jira.codehaus.org/browse/DISPL-242

> Column grouping and 2 row headers
> ---------------------------------
>
>          Key: DISPL-151
>          URL: http://jira.codehaus.org/browse/DISPL-151
>      Project: DisplayTag
>         Type: New Feature
>   Components: Tag Library
>     Versions: 1.0 RC2
>     Reporter: Jonathan Koppenhofer
>     Priority: Minor
>  Attachments: ColGrouping.jpg
>
>
> It would be nice to be able to group columns together so that the table 
> header has 2 rows to show groupings. For example, I want to display a list of 
> people with info about the person. I would like to have a header like:
> |           |        NAME           |       |            |
> |           |-----------------------|       |            |
> | PERSON_ID | LAST | FIRST | MIDDLE | PHONE | DEPARTMENT |...
> ----------------------------------------------------------
> Data...
> I envision something like...
> <display:table id="searchResults" name="..." >
>   <display:column property="id" title="PERSON_ID"/>
>   <display:column title="NAME">
>     <display:column property="lastName" title="LAST"/>
>     <display:column property="firstName" title="FIRST"/>
>     <display:column property="middleName" title="MIDDLE"/>
>   </display:column>
>   <display:column property="phone" title="PHONE"/>
>   <display:column property="dept" title="DEPARTMENT"/>
> </display:table>
> or 
> <display:table id="searchResults" name="..." >
>   <display:column property="id" title="PERSON_ID"/>
>   <display:column property="lastName" title="LAST" GROUP="NAME/>
>   <display:column property="firstName" title="FIRST" GROUP="NAME/>
>   <display:column property="middleName" title="MIDDLE" GROUP="NAME/>
>   <display:column property="phone" title="PHONE"/>
>   <display:column property="dept" title="DEPARTMENT"/>
> </display:table>
> ... where "GROUP" is a new attribute.
> I would also expect that it would still be able to preserve sorting on the 
> grouped columns. For example, I would still be able to sort on first, last, 
> and middle names.

-- 
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



-------------------------------------------------------
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42" plasma tv or your very own
Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
_______________________________________________
displaytag-devel mailing list
displaytag-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/displaytag-devel

Reply via email to