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 11 to 20 [First/Back] 1, 2, 3, 4, 5, 6 [Forw/Last]
ID Name Email NullValue Date
65246 Eirmod Sadipscing eirmod-sadipscing@elitr.com 04/21/10
28873 Diam Labore diam-labore@voluptua.com 08/24/10
28895 Diam Invidunt diam-invidunt@elitr.com 07/16/10
24323 Est Diam est-diam@sed.com 08/08/10
12062 Aliquyam Sed aliquyam-sed@eos.com 08/09/09
36331 Kasd Nonumy kasd-nonumy@sed.com 04/19/10
32124 Erat Lorem erat-Lorem@consetetur.com 02/08/10
43039 Sanctus Voluptua sanctus-voluptua@sed.com 05/20/10
61471 Invidunt Ea invidunt-ea@At.com 02/16/10
55787 Vero Amet vero-amet@magna.com 09/23/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.