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 31 to 40 [First/Back] 1, 2, 3, 4, 5, 6 [Forw/Last]
ID Name Email NullValue Date
67860 Elitr Voluptua elitr-voluptua@sit.com 07/23/09
71565 Dolor Kasd dolor-kasd@rebum.com 07/10/09
51132 Et Clita et-clita@magna.com 10/10/10
65303 Elitr No elitr-no@tempor.com 08/21/10
24810 Invidunt Accusam invidunt-accusam@diam.com 04/03/10
17371 Nonumy Magna nonumy-magna@clita.com 12/08/08
86432 Nonumy Consetetur nonumy-consetetur@Lorem.com 08/15/10
97178 Dolore Eos dolore-eos@et.com 10/26/09
47454 Sanctus Nonumy sanctus-nonumy@no.com 11/21/10
72637 Tempor At tempor-At@justo.com 07/27/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.