Hi,
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:
<display:table name="tableData" id="stat" sort="page">
<display:column property="name" title="Name" sortable="true"/>
<display:column property="age" title="Age"...
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 | item1 |
| | item2 |
| | item3 |
| group2 | item4 |
| | item5 |
I ...
Hi,
I'm using the displaytag JSP tag library to generate tables that show column totals. For example in the JSP code below, only those columns with the attribute total="true" will have totals generated.
<display:table name="myTable" id="myTable" decorator="org.displaytag.decorator.TotalTableDecorator">
<display:column property="na...
Hi,
I have a HTML table that's generated in a JSP by the displaytag tag library. I would like to suppress any zeros that appear in the table, i.e. they should be replaced by a blank cell. Is there any straightforward way to achieve this?
Cheers,
Don
...
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 PaginatedList interface that has, among others, the following methods:
/* Gets the total...
In jsp I'm using Display tag to print a table. In Display table tag, on giving a property in the display:column tag, that property gets printed as a column. What should I do to print the same as a row?
Let me give an example for clarity:
<display:table name="test">
<display:column property="id" title="ID" />
<display:column propert...
What tag libraries you know for J2EE JSP, something like displaytag, tinyMCE, and other useful stuff for new J2EE Developer.
...
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.
<display:column property="id" title="ID" href="details.jsp" paramId="id" />
but the link is not going to details.jsp .It doesn't go anywhere . what can be the possible reason
...
I want to use display tag but don't understand the official documentation. Can anyone show me other good tutorials?
...
I am working on struts2 application in which i am using displaytag for pagination support.
Now i want a check box for each row in the table for that i am doing this.
<display:table name="countryList" export="true" class="table" id="countryList" pagesize="${selectedPageSize}" decorator="org.displaytag.decorator.TotalTableDecorator...
Hi,
I'm developing a portlet by using Spring. In one of my JSPs I have a form where user can input search parameters ans submit. Both formView and successView is configured to be the same JSP page. In that page, I have a displayTag to render the result. Everything is ok except pagination of the list.My controller(SimpleFormController) ...
Dear Lazyweb,
I'm using the displaytag tag library, and it's worked amazingly so far. However, i don't see a simple option or way to put the export banner at the top of the table instead of the bottom. How can this be accomplished?
Thanks,
Roy
...
I'm using external paging/sorting with a custom TableDecorator and the following DisplayTag table in a JSP:
<display:table id="ixnlist" name="pageScope.itemList" sort="external"
decorator="org.mdibl.ctd.pwa.displaytag.decorator.IxnTableWrapper">
<display:column title="Row" property="rowNum" />
...more columns...
</display:tabl...
I am getting the value of amount like 4567.00 , 8976.00 etc. Now while dispalying this value in displaytag i would like to print it as $4567.00 instead of just 4567.00. How can i do that?
Provided i just want to use display tag. I can acheive the same thing using core:out tag.
$<core:out value="${variableInMyList}" />
Answer Found ...
Setup: I have a Struts web application where I use displaytag elements to do all of my table work. Each column is sortable.
Situation: When I click sort, on a long page, it sorts, but drops you at the top of the page.
Question: How do I use an anchor or some other method to come back to the table rather than the top of the page.
Additio...
Does the Display tag JSP tag provide a way to hook into pagination events, so that you can execute your own code when the user pages the data? I couldn't work out how to do it from the docs.
Thanks in advance.
...
my code is
request.setAttribute( "test", (new userarray()).getUsers() );
my fieldValue="%{test.checked} is not working properly as when i click on submit the checkboxes which i select ....their values do not get set...and in the user array
public class userarray extends ActionSupport{
private ArrayLi...
Currently i have placed the Displaytag.properties in 'src' directory, and it is working fine. Is it posssible to have this file on some different location like src/comp/bre/sub/config ?
...
Hi
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 anyone have an idea how to do this within the displaytag framework?
The only solutio...
I am using Displaytag to display the DataGrid. Now, I have to change the color of rows based on some calculation. Like if
the value of column3 + column4 > coulmn5 then the row color should be yellow
value of column3 + column4 < coulmn5 then the row color should be red
value of column3 + column4 = coulmn5 then the row color should be ...