[ 
http://issues.apache.org/jira/browse/MYFACES-562?page=comments#action_12330571 
] 

Mathias Broekelmann commented on MYFACES-562:
---------------------------------------------

t:datatable donĀ“t have action or actionListener properties. 
If your have created your own component which supports it you have to make sure 
that the action is fired in the invoke application phase which comes right 
after the update phase.

> <t:commandSortHeader> processes action / actionListener before updating 
> values of sortColumn and sortAscending
> --------------------------------------------------------------------------------------------------------------
>
>          Key: MYFACES-562
>          URL: http://issues.apache.org/jira/browse/MYFACES-562
>      Project: MyFaces
>         Type: Bug
>   Components: Tomahawk
>     Versions: 1.1.0
>     Reporter: Erik-Berndt Scheper

>
> At the moment <t:CommandSortHeader> processes an action / actionListener 
> before updating the values of sortColumn and sortAscending. The reason is 
> that in the broadcast()  method of HtmlCommandSortHeader.java, the method 
> super.broadcast(event) is executed before the values are updated.
> The consequence of this bug is that in the methods called by the action / 
> actionListener, the sortColumn and sortAscending properties of the datatable 
> still have the old value. Which in turn means that any sorting performed in 
> the action / actionListener methods lead to incorrect results.
> Suggested solution: call super.broadcast(event) AFTER the values of the 
> datatable have been updated.

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

Reply via email to