View source

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
ID Name Email NullValue Date
24906 Et Diam et-diam@dolores.com 11/28/12
80614 Clita Aliquyam clita-aliquyam@tempor.com 08/02/11
77901 Clita Takimata clita-takimata@sanctus.com 09/15/11
36545 Eos Dolores eos-dolores@aliquyam.com 08/16/12
33499 Et Clita et-clita@est.com 07/24/11
92914 Et Diam et-diam@gubergren.com 06/14/11
54346 Eirmod At eirmod-At@ipsum.com 06/26/12
65472 Et Ut et-ut@takimata.com 12/04/11
8098 Ut Sit ut-sit@amet.com 08/21/11
43138 Duo Sed duo-sed@est.com 01/22/12

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.