display tag is generating the url for sorting. I am using ajax but unfortunately, i cant figure out a way to call a javascript function from the link generated when I say sortable=true.
I cant use "mvn jar". It say -> Invalid task 'jar':
lets say the sort link is : a.jsp?ad=blah&b=0
I need to make the sort link: javascript:ajaxCall(a.jsp?ad=blah&b=0)
ie, I want to enclose the url in a javascript call.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I had tried the approach of DISPL-195 and works fine....
The approach is cleaner but If you are not able to get those things working, there is a workaround of this, but you may have to write custom tag, which would wrap display tag and modifies URL generated for sortable columns.
try putting entire table in some html container like DIV and modify links for pagination and sorting to point to some Javascript function which would then fire an ajax request.
you may need to create your own tag which would take display tag output and modify HREFs generated for pagination and sorting.
I had tried this approach too, and it works...
But i still think, you should try on the approach mentioned in DISL-195...
Thanks.
Harun....
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
display tag is generating the url for sorting. I am using ajax but unfortunately, i cant figure out a way to call a javascript function from the link generated when I say sortable=true.
I found out this : http://jira.codehaus.org/browse/DISPL-195
but it requires rebuilding of displaytag. when I rebuild displaytag, I am getting errors with Maven.
I cant use "mvn jar". It say -> Invalid task 'jar':
lets say the sort link is : a.jsp?ad=blah&b=0
I need to make the sort link: javascript:ajaxCall(a.jsp?ad=blah&b=0)
ie, I want to enclose the url in a javascript call.
I think, DisplayTag1.1.1 with Maven2.0.7
I had tried the approach of DISPL-195 and works fine....
The approach is cleaner but If you are not able to get those things working, there is a workaround of this, but you may have to write custom tag, which would wrap display tag and modifies URL generated for sortable columns.
you may need to create your own tag which would take display tag output and modify HREFs generated for pagination and sorting.
I had tried this approach too, and it works...
But i still think, you should try on the approach mentioned in DISL-195...
Thanks.
Harun....
I tried to build this but build fails using maven.
can you tell me which version of maven you have used and which version of displaytag sourcecode you have used.
Thanks