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
36
votes
5 answers

Using the POST Method with HTML Anchor Tags

I am certain the answer will be 'NO', but I wanted to ask anyway just incase I have missed something. Everyone knows that one pass data to a page in an anchor tag by using the GET method: What I am wondering is if there was a way to do the same…
dpsdce
  • 5,290
  • 9
  • 45
  • 58
29
votes
7 answers

How to reuse a Criteria object with hibernate?

I'm trying to do query result pagination with hibernate and displaytag, and Hibernate DetachedCriteria objects are doing their best to stand in the way. Let me explain... The easiest way to do pagination with displaytag seems to be implementing the…
agnul
  • 12,608
  • 14
  • 63
  • 85
19
votes
4 answers

Display: initial for internet explorer

I've made a website that works just fine in Google Chrome and Firefox, but when I run it in Internet Explorer I'm experiencing problems. So, I have 2 slideshows on my index page but only one should show at a specific screen resolution. I created…
13
votes
2 answers

How to group column headers using the Display tag Java library?

I am using the Display tag Java library in my web application. I need to group some column headers ("General" and "Office Info") as shown in the following example.
ajm
  • 12,863
  • 58
  • 163
  • 234
10
votes
1 answer

Controlling the placement of the paginator

According to the docs, Displaytag can be configured to put a paginator before or after the generated table element via the paging.banner.placement property. However, I would like to place the paginator in it's own row in the table footer. Does…
kulafu
  • 101
  • 3
9
votes
1 answer

switch case with display tag

I want to display various data in Display Tag column according to what I get from Session. How can I integrate switch case with display tag ? I want to display AAA if the unit value I get from session is 1 etc. Here is what I want…
kitokid
  • 3,009
  • 17
  • 65
  • 101
7
votes
3 answers

Why display tag pagination doesn't use partial list?

In display tag I used pagination feature, when I want to see the list of 15 rows but display tag fetches all the rows from database. Every time when i click on pagination number, it fetch all of the rows from db. Because of that it slow the…
rampatel
  • 521
  • 3
  • 10
  • 17
7
votes
1 answer

refresh displaytag table using ajax

Hy guys, I'm trying to solve this problem: I have a jsp page with inside a table generated with dispaytag library and other kind of stuff. When I press a button, I would like to generate an ajax call reloading just the table and not the whole jsp…
Giorgio
  • 1,073
  • 3
  • 15
  • 33
6
votes
4 answers

Filling the available space with display:table-cell

Is it possible to avail the second div to occupy the available space of the parent div without specifying manual width? Here is the Fiddle for the tried demo. .right_cnt { display: table-cell; background:#FFC; } NOTE: I need yellow box to…
Sowmya
  • 26,684
  • 21
  • 96
  • 136
5
votes
5 answers

How can i create a link in displaytag?

I want to create edit , delete link in display tag with struts2. How can i do so ? If anybody knows please help me .... i am doing this. but the link is not going to…
harshalb
  • 6,012
  • 13
  • 56
  • 92
5
votes
0 answers

display:table adds padding/margin in webkit browsers but not FF or IE

I'm working on some boxes where I'm forced to using the following css on a div in order to make it look right: display:table; It works fine in Firefox + Internet Explorer, but I just noticed that it adds a 1px border/margin/padding in webkit…
user653522
5
votes
3 answers

How to prevent wrapping of data exported to excel using display tag?

We are using the Display tag library in our Java based web application. Apart from just using display tag library to show lists, we are also using it to export data to excel sheets which is working fine. The problem is that the data is wrapped up…
ajm
  • 12,863
  • 58
  • 163
  • 234
4
votes
1 answer

displayTag: how to change displayTag parameters

I want to change the ugly displayTag (tableid) parameter from d-bunchofnumbers-p to a URL friendly one. I also want to change the sort and page parameters as well. Is it trivial to do this? If so, how? Is it as simple as setting the following…
milesmiles55
  • 677
  • 2
  • 13
  • 19
4
votes
4 answers

How to remove Nothing Found To Display in Display Tag of Struts 1.3

I want to remove the message Nothing Found to Display in Struts 1.3 Display Tag , When no record fetch from database. Its possible to do this...?
abhu74
  • 53
  • 2
  • 6
4
votes
1 answer

Struts2, convert s:select list to display Tag column

I have the following selection list in jsp: I chose to implement pagination…
manu
  • 241
  • 1
  • 2
  • 16
1
2 3
40 41