[ 
https://jira.jboss.org/browse/RF-8719?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Anton Belevich reopened RF-8719:
--------------------------------



wrong resolution

> tables sorting JS API wrong 
> ----------------------------
>
>                 Key: RF-8719
>                 URL: https://jira.jboss.org/browse/RF-8719
>             Project: RichFaces
>          Issue Type: Bug
>      Security Level: Public(Everyone can see) 
>          Components: component-tables
>    Affects Versions: 4.0.0.ALPHA1
>            Reporter: Ilya Shaikovsky
>            Assignee: Anton Belevich
>             Fix For: 4.0.0.Milestone1
>
>
> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
> "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd";>
> <html xmlns="http://www.w3.org/1999/xhtml";
>       xmlns:h="http://java.sun.com/jsf/html";
>       xmlns:f="http://java.sun.com/jsf/core";
>       xmlns:ui="http://java.sun.com/jsf/facelets";
>       xmlns:a4j="http://richfaces.org/a4j";
>       xmlns:it="http://richfaces.org/iteration";
>       xmlns:fn="http://richfaces.org/misc";>
>       <ui:composition>
>               <h:form>
>                       <h:panelGrid columns="4">
>                               <h:outputLink 
> value="javascript:#{fn:component('table')}.sort('name');">Sort by Capital 
> Name</h:outputLink>
>                               <h:outputLink 
> value="javascript:#{fn:component('table')}.sort('state');">Sort by State 
> Name</h:outputLink>
>                               <h:outputLink 
> value="javascript:#{fn:component('table')}.sort('timeZone');">Sort by Time 
> Zone</h:outputLink>
>                       </h:panelGrid>
>                       <it:dataTable value="#{capitalsBean.capitals}" 
> var="cap" id="table">
>                               <it:column>
>                                       <h:graphicImage 
> value="#{cap.stateFlag}"/>
>                               </it:column>
>                               <it:column sortBy="#{cap.name}" id="name">
>                                       <f:facet name="header">
>                                               <h:outputText value="Capital 
> Name"/>
>                                       </f:facet>
>                                       <h:outputText value="#{cap.name}"/>
>                               </it:column>
>                               <it:column sortBy="#{cap.state}" id="state">
>                                       <f:facet name="header">
>                                               <h:outputText value="State 
> Name" />
>                                       </f:facet>
>                                       <h:outputText value="#{cap.state}"/>
>                               </it:column>                            
>                               <it:column sortBy="#{cap.timeZone}" 
> id="timeZone" comparator="#{capitalsBean.timeZoneComparator}">
>                                       <f:facet name="header">
>                                               <h:outputText value="Time Zone" 
> />
>                                       </f:facet>
>                                       <h:outputText value="#{cap.timeZone}"/>
>                               </it:column>
>                       </it:dataTable>
>               </h:form>
>       </ui:composition>
> </html>
> after first click on any link - nothing happens. sorting applied only after 
> second click.
> then if some column already sorted - click on other control also reverts 
> sorting to unsorted state and only from second click it became sorted.
> if no sortOrder specified - there should not be "unsorted" in the result of 
> api method call

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
https://jira.jboss.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        
_______________________________________________
richfaces-issues mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/richfaces-issues

Reply via email to