[ http://jira.codehaus.org/browse/DISPL-85?page=all ]
     
fabrizio giustina closed DISPL-85:
----------------------------------

     Resolution: Won't Fix
    Fix Version: 1.1

the same result can be achieved without additions/modifications to the tag 
library, by simply using custom beans/maps and jstl code.
An example has been added to the example webapp (see the Dynamic Column 
Creation example).


This is a simple example, assuming "collist" is a list of javabeans/maps 
available in the request scope. 

<display:table name="test">
    <c:forEach var="cl" items="${collist}">
      <display:column property="${cl.property}" title="${cl.title}" 
sortable="${cl.sortable}" format="${cl.format}" />
    </c:forEach>
</display:table>


> Dynamic Column Creation (so called Column Collection)
> -----------------------------------------------------
>
>          Key: DISPL-85
>          URL: http://jira.codehaus.org/browse/DISPL-85
>      Project: DisplayTag
>         Type: New Feature

>   Components: Build/distribution
>     Reporter: Ilkka Lassila
>      Fix For: 1.1
>  Attachments: dynamicCol.zip, src.zip
>
> Original Estimate: 1 day
>         Remaining: 1 day
>
> I have been needing this feature since day one using displaytag: Dynamic 
> Column Creation. To be simple lets just say that a 'column collection' is 
> needed. A java collection, that helds 'column' objects to be able to 
> configure the table on the run. There are multiple cases where you can not 
> know the number of you columns before the execution of the JSP. For example 
> when you first choose which information you are interested to see in some 
> report, and then other info should be omited.

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



-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
displaytag-devel mailing list
displaytag-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/displaytag-devel

Reply via email to