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 51 to 60 [First/Back] 3, 4, 5, 6, 7, 8 [Forw/Last]
ID Name Email NullValue Date
81487 Sed Ipsum sed-ipsum@est.com 10/16/10
4256 Est Diam est-diam@dolore.com 12/19/09
51258 Vero Sadipscing vero-sadipscing@eirmod.com 03/10/09
34246 Et Et et-et@vero.com 02/24/10
45678 Consetetur Stet consetetur-Stet@aliquyam.com 04/23/10
57692 Sed Et sed-et@aliquyam.com 02/12/09
29080 Duo Invidunt duo-invidunt@ut.com 05/31/09
7070 Invidunt Tempor invidunt-tempor@takimata.com 09/24/10
14848 Eos Et eos-et@Stet.com 06/16/10
88574 Ut Duo ut-duo@accusam.com 12/22/08

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.