Menu

Filtering fields in Display Tag Lib.

2005-07-18
2012-10-09
  • Thiago Almeida

    Thiago Almeida - 2005-07-18

    Hi all,
    I have the table using Display Tag. Now i want to apply a filter to one specific field, lets say "name" for example.

    How do I enable this filter and show only the records that
    contains it ?

    Basically, its a search in the results of the Display Tag.

    Thank you all,
    Thiago Almeida

     
    • Christopher K Koenigsberg

      This is one nice thing that the eXtremeComponents table tag provides automatically. (sourceforge.net/projects/extremecomp)

      All of its table columns come with a "filter box" just below the header cell, by default, where the web user can type in a filter string to narrow down the results to only ones that have that expression present somewhere in that column.

      Right now I'm in the middle of a crash project to determine whether we're better off sticking with displaytag and adding modifications to do what we need, or switching to eXtremeComponents and adding (different) modifications to do what we need ... both taglibs provide some of what we need, but each one lacks features present in the other, and we really need both ...

      On the other hand, though the eXtremeComponents table and column tags have nicer builtin sort/filter/format features without needing any added code, they DON'Tt have the nice "href", "paramId", "paramProperty", "paramName" that displaytag table columns do!

      So you have to add them there, but it may be easier to add things to eXtremeComponents than to add (other) things to displaytag ...

       

Log in to post a comment.

MongoDB Logo MongoDB