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:
|Published (Last):||20 May 2007|
|PDF File Size:||4.56 Mb|
|ePub File Size:||13.34 Mb|
|Price:||Free* [*Free Regsitration Required]|
The classname of comparator to use when sorting this column, or the comparator itself. Use this attribute to keep a footer from being output during an export. This value is available via the Map named in varTotals for the table. Valid values are true or false boolean requestURI When the present, links for sorting, csption, and paging are formed by adding any tag generated parameters to the value of requestURI attribute.
Sign up using Email and Password. String paramProperty The name of a property of the current object being iterated on, whose return value will be used as the value of the parameter named by the paramId attribute that will be dynamically added dsiplaytag this href URL.
If paramName is also specified the property will not be fetched from the object being iterated on, but from the bean specified by paramName. If no ddisplaytag is specified the same value will be used for the html id of the generated table. Valid values are “ascending” default displlaytag “descending” String defaultsort The index of the column that will be used by default for sorting starting from 1 String excludedParams Whitespace separated list containg the name of parameters which should NOT be forwarded during paging or sorting.
struts-user mailing list archives
The display tag library is an open source suite of custom tags that provide high level web presentation patterns which will work in a MVC model, and provide a significant amount of functionality while still being simple and straight-forward to use. The primary tag in the library is the Table tag. A table decorator name can be the name of an object in page, request, session or application scope or a fully qualified class name of a class implementing the org.
I am using displaytag to render data, Displayatg have it working without any issues. Default is true, you can set it to false in order to generate cross-context links. In the EL version of the taglibrary this must be an EL expression which points to the source object. Valid values are “ascending” default or “descending” String escapeXml Set it to true to escape special characters in html and xml output.
The grouping captin starting at 1 and incrementing of this column indicates if successive contain the same values, then they should not be displayed.
Struts2 + display tag (Struts forum at Coderanch)
Tag Library EL displaytag-el. The body of the tag is into the tfoot section of the table. Column values need to Numbers. Valid values are capption or false String frame html pass through attribute. The support of paramProperty in conjunction with paramName will be probably removed in future: Valid values are dislpaytag 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 during paging or sorting.
String maxLength If this attribute is provided, then the column’s displayed is limited to this number of ccaption. The default sort order for this column. Sign up or log in Sign up using Google.
Unique id used to identify this table. Can you put your dissplaytag code fragment here? See the export page in the example webapp for more details.
Re: struts 2 display tag export problem
The diwplaytag order for the sorted column. Two tables in the same page can’t have the same uid paging and sorting will affect both. If this attribute is not included, then no grouping is performed.
The name of a property of the current object being iterated on, whose return value disp,aytag be used as the value of the parameter named by the paramId attribute that will be dynamically added to this href URL. Whitespace separated list of column decorators to apply to the current column.
The value displayed will be the results of a decorator if any ; else the property named by the ‘property’ attribute; or if the ‘property’ attribute is null, then the results of evaluating the JSP body of the tag.
MUST be nested inside of a Table tag. Using “Name” is suggested. This is version 1. Sign up using Facebook. If paramName is omitted, then it is assumed that the current object being iterated on is the target bean.
The column 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.
You can also set the property value in the tag body.