[ 
https://issues.apache.org/jira/browse/TOMAHAWK-855?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12470091
 ] 

Vitaly Smyk commented on TOMAHAWK-855:
--------------------------------------

ok now it's work
and i'm found way for setup own sorted =))))
            <t:column>
                <jsf:facet name="header">
                    <html:commandLink value="Name" action="#{VideoList.sort}">
                        <jsf:param value="name" name="sortBy"/>
                    </html:commandLink>
                </jsf:facet>

> dataTable sortable too slow
> ---------------------------
>
>                 Key: TOMAHAWK-855
>                 URL: https://issues.apache.org/jira/browse/TOMAHAWK-855
>             Project: MyFaces Tomahawk
>          Issue Type: Improvement
>          Components: Extended Datatable
>    Affects Versions: 1.1.3, 1.1.4-SNAPSHOT, 1.1.5-SNAPSHOT
>            Reporter: Vitaly Smyk
>         Assigned To: Catalin Kormos
>             Fix For: 1.1.5-SNAPSHOT
>
>
> when i use sortable column and many records any sort has too many time and 
> CPU to 100%
> after code review i found where is problem:
> in class SortableModel subclass private final class Comp
> medhod compare too slow becouse it invoke:
> getPropertyValue(_prop);
> i has change it to:
> PropertyUtils.getProperty(_model.getRowData(),_prop);
> and perfomanse increase !!!10 times!!!
> my impovements request:
> or change code or add functionality to setup Comparator themself (better 
> choise)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to