myfaces-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Leonardo Uribe (JIRA)" <...@myfaces.apache.org>
Subject [jira] [Resolved] (TOMAHAWK-1639) AbstractHtmlDataTable.expandAllDetails() doesn't work unless rowKey is specified on dataTable
Date Sun, 07 Oct 2012 04:41:03 GMT

     [ https://issues.apache.org/jira/browse/TOMAHAWK-1639?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Leonardo Uribe resolved TOMAHAWK-1639.
--------------------------------------

       Resolution: Fixed
    Fix Version/s: 1.1.14-SNAPSHOT
         Assignee: Leonardo Uribe

I have created a new interface called DetailTogglerModel, just to know which methods should
be called from varDetailToggler assigned value. This is the method list:

    /**
     * Collapse all details of all rows in all pages.
     */
    public void collapseAllDetails();

    /**
     * Expand all details of the rows displayed on the current page.
     */
    public void collapseAllPageDetails();
    
    /**
     * Expand all details of all rows in all pages.
     */
    public void expandAllDetails();
    
    /**
     * Expand all details of the rows displayed on the current page.
     */
    public void expandAllPageDetails();
    
    /**
     * Return true if the current detail row is expanded.
     *
     * @return true if the current detail row is expanded.
     */
    public boolean isCurrentDetailExpanded();

    /**
     * Change the status of the current detail row from collapsed to expanded or
     * viceversa.
     */
    public void toggleDetail();
    
    /**
     * true|false - true if the detailStamp should be expanded by default. default: false
     * 
     */
    public boolean isDetailStampExpandedDefault();

                
> AbstractHtmlDataTable.expandAllDetails() doesn't work unless rowKey is specified on dataTable
> ---------------------------------------------------------------------------------------------
>
>                 Key: TOMAHAWK-1639
>                 URL: https://issues.apache.org/jira/browse/TOMAHAWK-1639
>             Project: MyFaces Tomahawk
>          Issue Type: Bug
>          Components: Extended Datatable
>    Affects Versions: 1.1.13
>            Reporter: Matthew Tuttle
>            Assignee: Leonardo Uribe
>            Priority: Minor
>             Fix For: 1.1.14-SNAPSHOT
>
>
> AbstractHtmlDataTable.expandAllDetails() needs modified to work when a rowKey isn't specified
on a dataTable. Since it currently relies on a rowKey being specified expandAllDetails() fails
to function properly when called from a header or footer.
> Example (Doesn't Work):
> <t:dataTable id="table" value="#{bean.values}" var="com" varDetailToggler="detailToggler"
rowKey="#{com.ID}">
>    <f:facet name="header">
>        <t:commandLink action="#{detailToggler.expandAllDetails}">
>           <t:outputText value="Show All" />
>        </t:commandLink>
>    </f:facet>
> Example (Does Work - ONLY if rowKey is specified):
> <t:dataTable id="table" value="#{bean.values}" var="com" varDetailToggler="detailToggler"
rowKey="#{com.ID}">
>    <t:column>
>        <f:facet name="header">
>           <t:outputText value="Test" />
>        </f:facet>
>        <t:commandLink action="#{detailToggler.expandAllDetails}">
>           <t:outputText value="Show All" />
>        </t:commandLink>
>    </t:column>

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message