DisplayTag: how to change displayTag options

I want to change the ugly displayTag (tableid) parameter from d-bunchofnumbers-p to a friendly URL. I also want to change the sorting and page settings.

Is it trivial to do this?
If so, how? Is it as simple as setting the following properties?

 <display:setProperty name="pagination.pagenumber.param" value="page"/> <display:setProperty name="pagination.sort.param" value="sort"/> <display:setProperty name="pagination.sortdirection.param" value="dir"/> 

The url should look like this:

 results?sort=id&dir=asc&page=1 

I tried this, but it does not work. Thank you

+4
source share
1 answer

I ran into the same problem. After snapping the grid with a PaginatedList display displaytag, the options began to look friendlier.

Check out this post to understand what I'm talking about.

0
source

Source: https://habr.com/ru/post/1379186/


All Articles