Can you put your jsp code fragment here? It will help others to answer. Also, you can change caption text to see if caption text has some special. Display *: Tag Library (EL) Tag caption. Simple tag which mimics the html caption tag. Use it inside a table tag to display a caption. Example:

Author: Mazushura Mibar
Country: Japan
Language: English (Spanish)
Genre: Health and Food
Published (Last): 10 July 2010
Pages: 438
PDF File Size: 18.16 Mb
ePub File Size: 12.82 Mb
ISBN: 732-4-21332-631-7
Downloads: 40988
Price: Free* [*Free Regsitration Required]
Uploader: Vumi

String rules html pass through attribute. Stack Overflow works best with JavaScript enabled. This displayrag the table caption Jsp code: If a decorator is specified for the entire table, then this decorator will decorate that decorator.

You must define either the name attribute or the list attribute. Two tables in the same page can’t have the same id paging and sorting will affect both. The primary tag in the library is the Table tag. String value Catpion value to which the property is set.

Struts2 + display tag (Struts forum at Coderanch)

Valid values are “ascending” default or “descending” String defaultsort The index of the column that will be used by default for sorting starting from 1 int excludedParams Whitespace separated list containg the name of parameters which should NOT be forwarded captionn paging or sorting.

The caption will only render for the named media type s – it won’t be added to the table if the current request media is not supported.

String class html pass through didplaytag use this instead of directly coding presentational atttributes. Use the list attribute to indicate the Collection of data, in some scope, that the tag should operate on. String title html pass through attribute.


If this attribute is provided, then the column’s displayed is limited to this number of characters. Valid values are “ascending” default or “descending”. Fully qualified class name for a TableDecorator.

Defaults to the DefaultComparator.

The corresponding value is defined by the paramProperty and optional paramName attributes, optionally scoped by the paramScope attribute. Use ‘page’ if you want to sort only visible records, or ‘list’ if you want to sort the full list, or ‘external’ if the data is sorted outside displaytag.

Whitespace separated list of column decorators to apply to the current column. Reference disp,aytag the Integer object containing the size of the total dataset. Map of the column totals in a pageContext variable by this name.

Can be any space separated combination of ‘html’, ‘csv’, ‘xml’, ‘all’, or ‘excel’. If no “htmlId” is specified the same value will be used for the html id of the generated table. String sortProperty name of the property in the bean specified in the parent table tag via the “name” attribute which will be used to sort values in the column.

I am using displaytag to render data, I have it working without any issues.

Similar Threads

If not specified, all scopes are searched. The level indicates that if a lower level no longer matches, then the matching catpion this higher level should start over as well. Can be used as a “shortcut” for simple column decorations. Sign up using Email and Password.

See the export page in the example webapp for more details. This is version 1. String title title of the column text for the th cell String titleKey Resource key used to lookup the title value. Better using “padding” css attribute in style or class String cellspacing html pass through attribute String class html pass through attribute String decorator Fully qualified class name for a TableDecorator.


I thougt including caption would be simple. String media Use this attribute to keep a caption from being output during an export. In the EL version of the taglibrary this captoon be an EL expression which points to the source object.

Am I missing anything?

It has the same meaning of setting a value in the tag body, but values set using this attribute will not be coerced to Strings. Use a TableDecorator to provide custom operations against the whole list, such as computing totals.

struts-user mailing list archives

The default sort order for this column. String id html pass through attribute. A MessageFormat patter that will be used to decorate objects in the column. Attributes Name Description Type cellpadding html pass through attribute. This tag is not recognized.

caption (Display tag library Tag library documentation)

MUST be nested inside of a Table tag. The support of paramProperty in conjunction with paramName will be probably removed in future: Static value to be used for the column. Tag reference sheet Tag library reference for the following tag libraries: Also, you can change daption text to see if caption text has some special characters the tag doesn’t support. String length number of records to be shown String name reference to the object used as source for the table. If displaytav is omitted, then it is assumed that the current object being iterated on is the target bean.

String varTotals Store a java.