Simon Kitching wrote:
Hi Jorge,
Jorge Vásquez wrote:
Regards to all,
One week ago I had my commandSortHeader working perfectly until all
of a sudden it just stopped ordering. I haven´t done any change
neither to the xhtml page nor to the bean, and I am really having a
tough time trying to decipher how is this component´s operation in
order to proceed with some debugging. This whole ordering stuff is
really “sui-generis”, ‘cause it seems to work without the
conventional action paradigm or at least I don’t see nowhere where
the action invocation takes place. My specific problem is that I am
not receiving on the bean the column name clicked by the user. In
summary I have 2 questions that can really help me solve this issue:
1. Why can´t the column be arriving at the sort function of the
bean? (This is probably too difficult to answer as it implies
multiple possibilities)
2. Can anyone explain me the basic operating mechanism used by the
commandSortHeader component or redirect me to somewhere where it
is explained?
Are you aware of the myfaces wiki?
http://wiki.apache.org/myfaces
This page in particular may be useful:
http://wiki.apache.org/myfaces/Working_with_auto_sortable_tables
Hmm..actually, after reading that Working_with_auto_sortable_tables
page, I'm not sure that first example is correct. I could be wrong, as
it's a while since I last wrote a sortable table but I don't remember
anything that automatally invokes a method with signature
public String sort(String column)
Here's a link to an earlier email discussion on table sorting that may
be useful:
http://mail-archives.apache.org/mod_mbox/myfaces-users/200601.mbox/[EMAIL PROTECTED]
Regards,
Simon