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):||4 January 2007|
|PDF File Size:||16.40 Mb|
|ePub File Size:||6.81 Mb|
|Price:||Free* [*Free Regsitration Required]|
This is version 1. The variable will ONLY be available within the footer tag and after the end of the table, it is not available with the body of the table or columns. String maxWords If this attribute is provided, then the column’s displayed is limited to this number of words. You can also set the property value in the tag body. As an alternative, you may create a property file that holds sitewide defaults; see the configuration documentation or the DisplayPropertiesLoaderServlet javadoc for information.
The contents of the list can be sorted, and the list can be broken into individual pages for display. String sortable Set to ‘true’ to make the column sortable. Using “Name” is suggested. If sortName is ommitted the value for the sort param will default to the column number.
Am I missing anything? String property name of the property in the bean specified in the parent table tag via the “name” attribute mapped to this column String scope “scope” html attribute. In the EL version of the taglibrary this must be an EL expression which points to the source object. String media Use this attribute to keep a caption from being output during an export. An empty href value will generate a link to the current page, preserving parameters just like for paging links.
String headerClass “class” html attribute added only for header cells. Only works if “title” is not defined.
caption (Display tag library Tag library documentation)
Valid values are “ascending” default or “descending”. String paramId The name of the request parameter that will be dynamically added to the generated href URL. You may need to use the value attribute instead of a scriptlet in the tag body if you need to calculate totals on numeric values. String paramName The name of a JSP bean that is a String containing the value for the request parameter ccaption by paramId if paramProperty is not specifiedor a JSP bean whose property getter is called to return a String if paramProperty is specified.
The name of the request parameter that will be dynamically added to the generated href URL.
Displaytag caption not working – Stack Overflow
The caption will only render for the named media type s – it won’t be added to the table if the current request displayhag is not supported. Sign up using Facebook. Tag Library EL The display tag library is an open source suite cpation custom tags that provide high level web presentation patterns which will work in a MVC model, and provide a significant captikn of functionality while still being simple and straight-forward to use.
MUST be nested within a Table tag. Can you put your jsp code fragment here? Sign up or log in Sign up using Google. The default sort order for this column.
If you use this tag in Struts, or in some other framework where the page is included via a jsp: Displaytag caption not working Ask Question.
If a decorator is specified for the entire table, then this decorator will decorate that decorator. When the present, links for sorting, exports, and paging are formed by adding xisplaytag tag generated parameters to the value of requestURI attribute.
String media Render the column for the media type s. 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.
The support of paramProperty in conjunction with paramName will be probably removed in future: If true, will total the contents of this column.
String title title of the column text for the th cell String titleKey Resource key used to lookup the title value.
struts-user mailing list archives
The corresponding diplaytag is defined by the perty and optional paramName attributes, optionally scoped by the paramScope attribute. Static value to be used for the column. Reference to the object used as source for the table.
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 it inside a table tag to display a caption. If not specified, all scopes are searched. String sortProperty name of the property in the displlaytag specified in the parent table tag via the “name” attribute which will be used to sort values in the column.
String htmlId html “id” pass through visplaytag String id See “uid”.
String sort 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.
If paramName is omitted, then it is assumed captio the current object being iterated on is the target bean. 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.
Whitespace separated list of column decorators to apply to daption current column.