Return-Path: Delivered-To: apmail-myfaces-dev-archive@www.apache.org Received: (qmail 68519 invoked from network); 2 May 2005 12:03:17 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 2 May 2005 12:03:17 -0000 Received: (qmail 18614 invoked by uid 500); 2 May 2005 12:04:34 -0000 Delivered-To: apmail-myfaces-dev-archive@myfaces.apache.org Received: (qmail 18379 invoked by uid 500); 2 May 2005 12:04:32 -0000 Mailing-List: contact dev-help@myfaces.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "MyFaces Development" Delivered-To: mailing list dev@myfaces.apache.org Received: (qmail 18356 invoked by uid 99); 2 May 2005 12:04:32 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received: from ajax-1.apache.org (HELO ajax.apache.org) (192.87.106.226) by apache.org (qpsmtpd/0.28) with ESMTP; Mon, 02 May 2005 05:04:31 -0700 Received: from ajax.apache.org (ajax.apache.org [127.0.0.1]) by ajax.apache.org (Postfix) with ESMTP id E2EEE29C for ; Mon, 2 May 2005 14:03:04 +0200 (CEST) Message-ID: <130343486.1115035384928.JavaMail.jira@ajax.apache.org> Date: Mon, 2 May 2005 14:03:04 +0200 (CEST) From: "Alex Mayer (JIRA)" To: dev@myfaces.apache.org Subject: [jira] Commented: (MYFACES-224) x:dataTable, x:columns and x:commandSortHeader not sorting the data In-Reply-To: <1342718040.1114973944673.JavaMail.jira@ajax.apache.org> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N [ http://issues.apache.org/jira/browse/MYFACES-224?page=3Dcomments#act= ion_64249 ] =20 Alex Mayer commented on MYFACES-224: ------------------------------------ I wonder, that you found everyting working. I added a message to my sort-class which is printed out everytime the sort-= method is called. So with above code the sort-method is just called once. I changed the prese= rveDataModel to false which did not change a thing. The sort method is only= called once regardless which value is applied to preserveDataModel. The x:columns-tag adds to my opinion to every column the same id. That is w= hy EVERY column looks the same except the applied value for the outputText = like this: header1↑header2head= er3 The point is, that when I click on a commandSortHeader-Link in the table, n= othing happens. The sort-method is not called. And the page isn't rendered = again either. Internet Explorer is announcing a javascript error whereas fi= refox doesn't (but I don't have the js-debugger console in firefox installe= d) > x:dataTable, x:columns and x:commandSortHeader not sorting the data > ------------------------------------------------------------------- > > Key: MYFACES-224 > URL: http://issues.apache.org/jira/browse/MYFACES-224 > Project: MyFaces > Type: Bug > Versions: 1.0.9 beta > Environment: tomcat5.5, java5 update 3, > Reporter: Alex Mayer > > The x:commandSortHeader is not working if nested inside of x:columns (whi= ch is nested in x:dataTable) > my code is like this: > sortColumn=3D"#{manager.sortList.sort}" sortAscending= =3D"#{manager.sortList.ascending}" > preserveSort=3D"true" preserveDataModel=3D"true"> = =20 > =20 > > =20 > > > > > =20 > > > > > > in case I use a component-binding for the x:dataTable to generate a corre= sponding table in a bean, everything works fine. =20 > I believe this is, because the x:columns-tag assigns to every childcompon= ent of type commandSortHeader the same id. --=20 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