Thanks Geeta this was very helpful
to me in getting my datatable column sort functionality to work.
From:
[EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Friday, December 30, 2005
11:41 PM
To: MyFaces
Discussion
Subject: RE: Data Table Sorting
still not working
Mike
;
}
};
Collections.sort(arrlist_providers, comparator);
}
/
-Original Message-
From: Simon Kitching [mailto:[EMAIL PROTECTED]
Sent: Friday, December 30, 2005 11:20 PM
To: MyFaces Discussion
Subject: Re: Data Table Sorting still not working
Hi Tom/Mike
;
}
};
Collections.sort(arrlist_providers, comparator);
}
/
-Original Message-
From: Simon Kitching [mailto:[EMAIL PROTECTED]
Sent: Friday, December 30, 2005 11:20 PM
To: MyFaces Discussion
Subject: Re: Data Table Sorting still not working
Hi Tom/Mike
if I
do this.
thx
-Original Message-
From: Simon Kitching [mailto:[EMAIL PROTECTED]
Sent: Sunday, January 01, 2006 6:43 PM
To: MyFaces Discussion
Subject: RE: Data Table Sorting still not working
Hi Tom,
I presume we're talking about the public void sort(String col) method
defined
: Friday, December
30, 2005
6:03 PM
To: MyFaces Discussion
Subject: Re: Data
Table Sorting
still not working
Hi Tom,
The way I understand it is that the sort() method gets called
automatically
when you define your data table with an entry like this:
sortColumn="#{list
Hi Simon,
This is great info, thanks.
You should write a "how to" book on MyFaces (we could use it!
s).
I seem to have things set upĀ the way you're describing, so I'm
wondering if my faces-config is missing some listener or something
since clicking the header doesn't actually fire the
Mike are you calling the sort
method from within your getUpdates getter method in your bean (Im assuming
Updates is your arraylist/datamodel since you have value
=#{TD.updates} ?
Note Im not sure if this is needed or not
you are ahead of where I am with regards to getting this working
Hi Tom,
The way I understand it is that the sort() method gets called
automatically when you define your data table with an entry like this:
sortColumn="#{list.sort}"
(you have to have, in this case, a sort property with a getter/setter
in whatever class the list managed bean points to)
.
From: Mike [mailto:[EMAIL PROTECTED]
Sent: Friday, December 30, 2005
6:03 PM
To: MyFaces Discussion
Subject: Re: Data Table Sorting
still not working
Hi Tom,
The way I understand it is that the sort() method gets called automatically
when you define your data table with an entry like
Hi Tom/Mike,
The sortColumn attribute on the t:dataTable tag points to a javabean
*property* of type String.
eg:
t:dataTable
value=#{mybean.dataToDisplay}
sortColumn=#{mybean.sortByColumn} .../
where the managed bean declaration maps name mybean to an instance of
MyBean which has:
Mike, Tom:FirstMike, maybe it was a typo, but you said you had "Persons". Hope you meant "persons" (lower case).Here's a complete example which works fine for me. I'll try to explain what i understand what needs to be done. But first the code:My backing bean (or the bean that's "behind" the
11 matches
Mail list logo