Questions tagged [displaytag]

The display tag library is an open source suite of custom Java Server Pages (JSP) tags that provide high-level web presentation patterns which will work in an MVC model.

Display tag is a tag library for Java Server Pages (JSP) handling the pagination and sorting of result sets, with optional PDF, XML and Excel export.

607 questions
1
vote
0 answers

having trouble using @ModelAttribute with @ResponseBody

I have a requirement where on ajax call i need to populate the table. I am using jquery ajax and spring mvc. Below is the code i am using to populate the bean using modelattribute, but when i go to the jsp modelattribute is not available at all. Any…
chetank
  • 392
  • 3
  • 17
1
vote
0 answers

Displaytag, Search Filter and Pagination

I need some help with DisplayTable. I use Spring Framework, so my Table is in a JSP, the List is send by my controller. I have a displaytable with pagination that work perfectly, but I'd like to add a Search Filter to search in this Table. But, the…
BorbagUskada
  • 109
  • 10
1
vote
1 answer

displaytag, grouping and blank lines

I'm looking for a way to do grouping with displaytag but with the group title separated from the detail. It's probably not all that clear, so here is an example : If I just add groups to a displaytag table, I end up with something like : | group1 |…
Guillaume
  • 18,494
  • 8
  • 53
  • 74
1
vote
1 answer

Export to Excel not working with more than two s:optiontransferselect

I am getting a strange problem. Below code works fine if I used any two , but when I add third , export to excel functionality of displayTag does not work. JSP: <%@ page language="java"…
Neha arora
  • 85
  • 8
1
vote
1 answer

Unable to pass a parameter through in DisplayTag

Edit id is property in my action…
lucky
  • 33
  • 1
  • 5
1
vote
2 answers

Get Wrond Display Size . how to convert to original size?

I am getting display size using this function but i get wrong display size in this(moto G2,HTC E8 ,Moto E,Lg G2) device. but in my other device i got perfect size. how to I calculate this size? private void getDefaultDisplay(WindowManager wm) { …
Mr X
  • 1,053
  • 2
  • 11
  • 24
1
vote
1 answer

Is there a chance to get the size of a list property in Struts 2?

Is there a chance to get the size of a property which is a list? reminderSet is a list. I want to display the size of it and not the values.
hypePG
  • 67
  • 1
  • 8
1
vote
1 answer

How to use DisplayTag with nested Lists and Properties in Struts 2

I'm trying to display a list. Inside this list there is another list which I want to display. With Struts my code looked like this:
hypePG
  • 67
  • 1
  • 8
1
vote
2 answers

sorting HTML tables with displaytag JSP tab library

I'm using the JSP displaytag tag lib to create HTML tables. I'd like the user to able to click on a column header in order to sort the data. My JSP code is shown below:
Dónal
  • 185,044
  • 174
  • 569
  • 824
1
vote
0 answers

DisplayTag Jquery Struts2 Ajax Pagination

I have Struts2 working with Jquery + DisplayTag. Here is the JSP with displayTag: <%@ page contentType="text/html; charset=UTF-8"%> <%@ taglib prefix="s" uri="/struts-tags"%> <%@ taglib prefix="sj" uri="/struts-jquery-tags"%> <%@ taglib…
1
vote
1 answer

Individual Table DisplayTag Settings

I'm using displaytag to list information on my website and its working well. The problem I'm having is to do with the messages as defined in displaytag.properties. My website displays different types of information so for one displaytag table I may…
Gerard
  • 4,818
  • 5
  • 51
  • 80
1
vote
1 answer

Using DisplayTag library, I want to have the currently selected row have a unique custom class using the TableDecorator

I have been trying to figure out how to highlight the selected row in a table. In my jsp I have jsp scriplet that can get access to the id of the row the displaytag library is creating. I want to compare it to the the id of the current row selected…
Mary
  • 21
  • 1
  • 3
1
vote
1 answer

NoClassDefFoundError: org/apache/commons/collections/IteratorUtils

I received this error: NoClassDefFoundError: org/apache/commons/collections/IteratorUtils I have downloaded the newest jar: commons-collections4-4.0.jar And it looks like multiple libs/apps are looking for commons/collections (not…
user2913139
  • 557
  • 2
  • 5
  • 13
1
vote
2 answers

Nested JSTL variable name? is it possible?

I am trying to use a JSTL variable inside another variable. The code below will explain it better.
user3752790
  • 61
  • 2
  • 6
1
vote
1 answer

Fetching value for display:column title in Struts 2

I am working on a display table version 1.2 on Struts 2 application. I am having problem with fetching value for "titleKey" in my display table column. But here Title key is…
ashwini
  • 27
  • 6