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):||16 October 2013|
|PDF File Size:||1.41 Mb|
|ePub File Size:||12.86 Mb|
|Price:||Free* [*Free Regsitration Required]|
String decorator Whitespace separated list of column decorators to apply to the current column. Email Required, but never shown.
Displaytag caption not working – Stack Overflow
Using “Name” is suggested. String title title of the column text caotion the th cell String titleKey Resource key used to lookup the title value. String paramId The name of the request parameter that will be dynamically added to the generated 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.
It will help others to answer. Valid values are true or false boolean frame html pass through attribute. Use it inside a table tag to display a caption. String length number of records to be shown int list Reference to the object used as source for the table. 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.
The display tag library is an open source suite captikn 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.
Displagtag Name Description Type class html pass through attribute. 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 didplaytag. String media Render the column for the media type s. Two tables in the same page can’t have the same uid paging and sorting will affect both.
Whitespace separated list containg the name of parameters which should NOT be forwarded during paging or sorting.
struts-user mailing list archives
A MessageFormat patter that will be used to displaytxg objects in the column. 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.
I thougt including caption would be simple.
You can also set the property value in the tag body. Works together with a configured I18nResourceProvider, specified via the displaytag. If not specified, all scopes are searched.
If paramName is not provided, then the current object being iterated on is assumed to captioon the target bean. Also, you can change caption text to see if caption text has some special characters the tag doesn’t support. The id attribute can’t be a runtime expression in jsp 1.
String total If true, will total the contents of this column. Can be an expression like requestScope. Automatically hyperlink URLs and email addresses that appear in the column.
String sortable Set to ‘true’ to make the column sortable. Sets the indicated property on the enclosing Table tag. As an alternative, you may create a property file that holds sitewide defaults; see the configuration documentation or the DisplayPropertiesLoaderServlet javadoc for information.
caption (Display tag library Tag library documentation)
If this attribute is not included, then no grouping is performed. When the present, links for sorting, exports, and paging are formed by adding any tag disolaytag parameters to the value of requestURI attribute. Sign up or log in Sign up using Google. Two tables in the same page can’t have the same id paging and sorting will affect both.
String headerScope “scope” html attribute added only for header cells. Displytag media Use this attribute to keep a caption from being output during an export.