Issue 132: Add support for sortProperty to JSP tag jmesa:htmlColumn
Status:  Invalid
Owner: ----
Closed:  Aug 2008
Reported by ghillert, Aug 8, 2008
Using the FilterMatcher is nice:

public class TagFilterMatcherMap implements FilterMatcherMap {
    public Map<MatcherKey, FilterMatcher> getFilterMatchers() {
        Map<MatcherKey, FilterMatcher> filterMatcherMap = new
HashMap<MatcherKey, FilterMatcher>();
        filterMatcherMap.put(new MatcherKey(Date.class, "born"), new
DateFilterMatcher("MM/yyyy"));
        return filterMatcherMap;
    }
}

However, could you possibly add support for a 'sortProperty' attribute to
the JSP tag jmesa:htmlColumn (similar to Displaytag)?

Thus, I would not need to create a FilterMatcher but could simply do
something like:

<jmesa:htmlColumn property="postedDate" pattern="${datePattern}"
sortProperty="postedDate"/>







 
Aug 11, 2008
Project Member #1 jeff.johnston.mn@gmail.com
The reason that will not work is because the filtering of the columns happens way
before the API knows of any of the column definitions. That was by design to offer a
clear separation between how the data is retrieved versus how the table is displayed.

However, I could go the other way and was thinking about having the FilterMatcher
influence the column rendering so that you do not have to declare the pattern twice.
I wrote an issue ticket about this a while back but have not thought it through enough.

https://code.google.com/p/jmesa/issues/detail?id=73

Also, the way to presort a column in JMesa is to manipulate the Limit and pass that
to the tag TableFacade.

See the Limit page under the title 'The Limit Exposed'

https://code.google.com/p/jmesa/wiki/Limit


Aug 15, 2008
Project Member #2 jeff.johnston.mn@gmail.com
(No comment was entered for this change.)
Status: Invalid