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
28321 Rebum Consetetur rebum-consetetur@sit.com 10/25/09
23706 Vero Tempor vero-tempor@Stet.com 12/14/09
82173 Takimata Diam takimata-diam@justo.com 07/25/10
82057 Diam Magna diam-magna@labore.com 01/03/09
67076 Stet Sed Stet-sed@et.com 01/03/09
58513 Elitr Justo elitr-justo@dolor.com 05/02/10
98276 Sed Et sed-et@justo.com 12/27/08
14540 Dolores Accusam dolores-accusam@vero.com 06/02/10
9439 At Stet At-Stet@sed.com 09/29/10
56013 Ea Elitr ea-elitr@amet.com 06/25/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.