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 41 to 50 [First/Back] 2, 3, 4, 5, 6, 7 [Forw/Last]
ID Name Email NullValue Date
82148 Justo No justo-no@rebum.com 12/19/09
43932 Et Erat et-erat@justo.com 09/02/10
50128 Labore Voluptua labore-voluptua@magna.com 04/01/09
38290 Dolores Est dolores-est@kasd.com 10/25/09
23879 Diam Aliquyam diam-aliquyam@Lorem.com 05/11/10
48478 Diam Et diam-et@tempor.com 10/02/09
76881 Sea Aliquyam sea-aliquyam@sea.com 09/02/10
47885 Accusam Sed accusam-sed@clita.com 08/20/10
105 Ut Eos ut-eos@no.com 07/11/09
31779 Accusam Et accusam-et@no.com 02/09/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.