hi, good day, i'm new in displaytag, when i make the clumn to sortable='true' , the column will occupy with repeated img ..anyone know what wrong with it ?
the arrow img is in png format , which i copy from img folder from displaytagExample1.1
sample code [code] <display:table name="sessionScope.CustomerInfoList" defaultsort="1" defaultorder="descending" pagesize="5"> <display:column property="cust_cd" title="ID" sortable="true"/> <display:column property="cust_name" title="Name" sortable="true"/> </display:table> [/code]
many thanks for guidance
Code: code
thanks , Rich Bagley ...i get it :) , have a nice day
I believe it's in your css. I had the same problem and here's my css:
.displaytag-sortable a { background-image: none; background-position: right; background-repeat: no-repeat; display: block; color: #ffffff; } .displaytag-order1 a { background-image: url(../images/newDisplaytag/ascarrow.gif); background-position: right; background-repeat: no-repeat; }
.displaytag-order2 a { background-image: url(../images/newDisplaytag/descarrow.gif); background-position: right; background-repeat: no-repeat; }
Here's the table:
<display:table style="width: 100%;" name="sessionScope.downloadForm.fileEntries" id="files" sort="list" requestURI="/downloadSetup.do" > <display:column headerClass="displaytag-th" title="Row"><%=pageContext.getAttribute( "files_rowNum" )%></display:column> <display:column sortable="true" headerClass="displaytag-th" property="username" title="User"/> <display:column sortable="true" headerClass="displaytag-th" property="filename" title="File Name" href="/fileUpload/download.do?mode=download" paramId="filename" paramProperty="fullFilename"/> <display:column headerClass="displaytag-th" property="fileSize" title="File Size"/> <display:column headerClass="displaytag-th" property="fileModDate" title="Last Modified"/> <display:column headerClass="displaytag-th" title="<%=checkAll%>"> <input type="checkbox" name="selections[<%= getIndex( (Integer) pageContext.getAttribute( "files_rowNum" ) )%>]"> </display:column> </display:table>
Log in to post a comment.
hi, good day, i'm new in displaytag, when i make the clumn to sortable='true' , the column will occupy with repeated img ..anyone know what wrong with it ?
the arrow img is in png format , which i copy from img folder from displaytagExample1.1
sample code
[code]
<display:table name="sessionScope.CustomerInfoList" defaultsort="1" defaultorder="descending" pagesize="5">
<display:column property="cust_cd" title="ID" sortable="true"/>
<display:column property="cust_name" title="Name" sortable="true"/>
</display:table>
[/code]
many thanks for guidance
Related
Code: code
thanks , Rich Bagley ...i get it :) , have a nice day
I believe it's in your css. I had the same problem and here's my css:
.displaytag-sortable a {
background-image: none;
background-position: right;
background-repeat: no-repeat;
display: block;
color: #ffffff;
}
.displaytag-order1 a {
background-image: url(../images/newDisplaytag/ascarrow.gif);
background-position: right;
background-repeat: no-repeat;
}
.displaytag-order2 a {
background-image: url(../images/newDisplaytag/descarrow.gif);
background-position: right;
background-repeat: no-repeat;
}
Here's the table: