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 21 to 30 [First/Back] 1, 2, 3, 4, 5, 6 [Forw/Last]
ID Name Email NullValue Date
23171 Sed Stet sed-Stet@eos.com 05/13/09
77473 Tempor Est tempor-est@sed.com 01/25/10
93198 Voluptua Vero voluptua-vero@ipsum.com 01/21/10
7887 Et Justo et-justo@elitr.com 01/06/09
37175 Tempor Aliquyam tempor-aliquyam@diam.com 10/08/10
86337 Est Eos est-eos@eos.com 08/25/09
75613 Amet Accusam amet-accusam@justo.com 11/21/09
76403 At Dolores At-dolores@Stet.com 08/25/09
58886 Rebum Sanctus rebum-sanctus@labore.com 09/29/09
39319 Dolore Dolore dolore-dolore@sed.com 01/11/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.