You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@myfaces.apache.org by "sean schofield (JIRA)" <de...@myfaces.apache.org> on 2006/05/03 21:48:47 UTC
[jira] Commented: (TOMAHAWK-388) Add expandAll/collapseAll or
toggleAll details for master detail dataTable (detailToggler)
[ http://issues.apache.org/jira/browse/TOMAHAWK-388?page=comments#action_12377617 ]
sean schofield commented on TOMAHAWK-388:
-----------------------------------------
Shouldn't there also be changes to the TLD and tags? What do other committers feel about this functionality?
> Add expandAll/collapseAll or toggleAll details for master detail dataTable (detailToggler)
> ------------------------------------------------------------------------------------------
>
> Key: TOMAHAWK-388
> URL: http://issues.apache.org/jira/browse/TOMAHAWK-388
> Project: MyFaces Tomahawk
> Type: Improvement
> Components: Extended Datatable
> Versions: 1.1.2-SNAPSHOT
> Environment: All
> Reporter: Mikhail Grushinskiy
> Priority: Minor
> Fix For: 1.1.2-SNAPSHOT
> Attachments: HtmlDataTable-TOMAHAWK-388.java.patch
>
> Add expandAll/collapseAll or toggleAll details for master detail tomahawk dataTable (detailToggler). It seems it can be achieved pretty easily.
> In tomahawk package org.apache.myfaces.component.html.ext HtmlDataTable
> the following methods could be added for that
> public void expandAllDetails()
> {
> int rowCount = getRowCount();
>
> _expandedNodes.clear();
> for (int row = 0; row < rowCount; row++)
> {
> _expandedNodes.add(new Integer(row));
> }
> }
>
> public void collapseAllDetails()
> {
> _expandedNodes.clear();
> }
>
> In tomahawk.tld
> <attribute>
> <name>varDetailToggler</name>
> <required>false</required>
> <rtexprvalue>false</rtexprvalue>
> <description>
> This variable has the boolean property "currentdetailExpanded" which is true if the current detail row is expanded and the action methods
> "toggleDetail" which expand/collapse the current detail row; "expandAllDetails" - expands all detail rows;
> "collapseAllDetails" - collapses all detail rows
> </description>
> </attribute>
> Also it would be nice to have an attribute to allow initial state to be "all expanded", something like allExpandInit="true"
> Thanks a lot,
> --MG
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira