Config, Overriding defaults behaviors/messages

There are a number of "default" values and strings used by the display tags to show messages, decide which options to display, etc... This is useful if you want to change the behavior of the tag a little (for example, don't show the header, or only show 1 export option), or if you need to localize some of the default messages and banners.


320 Cats sleeping, waking 1 to 10 [First/Prev] 1, 2, 3, 4, 5, 6 [Next/Last]
ID Name Email NullValue Date
27201 Accusam Consetetur accusam-consetetur@duo.com 10/19/09
35612 Diam Dolor diam-dolor@elitr.com 10/10/09
2417 Et Sed et-sed@eirmod.com 12/15/09
42719 Justo Amet justo-amet@gubergren.com 05/13/09
68527 Eos Justo eos-justo@sea.com 06/22/09
32114 Gubergren Justo gubergren-justo@dolor.com 08/21/09
57046 Eirmod Sanctus eirmod-sanctus@rebum.com 05/16/09
45065 Takimata Sit takimata-sit@diam.com 03/17/09
24742 Sed Diam sed-diam@labore.com 04/08/09
68394 Justo Ea justo-ea@et.com 05/05/09

The defaults can be overriden for just this table via the <display:setProperty name="..." value="..."> tag, or you can override for the entire site via a displaytag.properties file or by directly setting properties at runtime. Look for the "configuration" section in the displaytag documentation for the full list of properties, their default values, and details on how to configure them in your system.


The following sample shows how you can change the behaviour for empty tables (showing the table or a simple message) using the "basic.empty.showtable" property.

Using basic.empty.showtable=false

Nothing found to display.

Using basic.empty.showtable=true

column1 column2 column3
Nothing found to display.