开发者

Problems with multiple tables and sortable columns on the same page

I have a problem with three or more tables on the same .gsp page. I want to show three tables on one page, both with sortable columns. Unfortunaly that does not work, because variables like sort and orde开发者_开发百科r seem to be globally definded and will take effect on every table. So if both tables have the column, both are sorted. If one has not, an error is thrown. Is there any way to have three tables one page, which can be independently sorted, or what is a good way to to this?


You could use the remote-pagination plugin.

Christian


I have done this in our Grails app. I copied the source code of the sortableColumn tag into my own taglib and changed the names of the second table's sort and order params to eg sort2 and order2. Change the names in your new sortableColumn tag accordingly.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜