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
53727 Et No et-no@justo.com 08/09/09
41727 Rebum Ut rebum-ut@erat.com 07/26/09
16223 Sanctus Ipsum sanctus-ipsum@eos.com 01/26/09
75336 Invidunt Gubergren invidunt-gubergren@erat.com 04/04/10
71170 Aliquyam Aliquyam aliquyam-aliquyam@takimata.com 07/29/10
98502 Sea Elitr sea-elitr@tempor.com 11/04/09
49489 Ea Sit ea-sit@sed.com 08/29/09
59475 Sanctus Erat sanctus-erat@ut.com 08/15/09
88919 Sadipscing Consetetur sadipscing-consetetur@gubergren.com 07/12/09
8282 Voluptua Et voluptua-et@et.com 07/25/10

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.