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 311 to 320 [First/Prev] 27, 28, 29, 30, 31, 32 [Next/Last]
ID Name Email NullValue Date
8930 Ut Dolores ut-dolores@est.com 02/12/09
27459 Ut Stet ut-Stet@amet.com 03/27/09
35584 Invidunt Accusam invidunt-accusam@et.com 01/01/09
95779 Et Dolore et-dolore@diam.com 03/26/10
79865 Et Sea et-sea@ut.com 04/24/09
38430 Erat Est erat-est@ut.com 11/20/09
72228 Kasd Gubergren kasd-gubergren@no.com 07/25/10
21295 Consetetur No consetetur-no@sanctus.com 06/03/10
1985 Sea Rebum sea-rebum@erat.com 04/21/09
93902 Ea Eos ea-eos@takimata.com 03/28/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.