Red Hat Bugzilla – Bug 974425
Inconsistent title of pager icon in "Task List (Advanced View)"
Last modified: 2014-08-06 16:06:46 EDT
Created attachment 761128 [details]
Description of problem:
See printscreen. While the first 3 icons are named:
1) First page
2) Previous page
3) Next page
the 4th is named
4) Fast forward
-> Should be renamed to "Last page" to be consistent with the first three
Version-Release number of selected component (if applicable):
fixed in master and beta4
I checked with Beta 4 and the problem is still present -> The button still has title "Fast forward"
i.e. the anchor element in the web page is rendered as
There is also probably related bug about this button, that unlike the previous 3 paging buttons it doesn't work - it is allways disabled.
For example add 60 tasks (= 2 pages of tasks) and then try to use paging buttons like next - previous - next - first. The buttons are enabled/disabled based on your currently displayed list page, but "Fast forward" is allways disabled and doesn't work.
I will check this, but this is the standard pager that comes with the GWT Bootstrap libs. It's not inside the jbpm console ng. I guess that all the pagers in the apps will have that Title.
Yes, you're right. I checked the sources and the label "Fast forward" is hardcoded in https://github.com/gwtbootstrap/gwt-bootstrap/blob/master/src/main/java/com/github/gwtbootstrap/client/ui/SimplePager.java . Also the faulty logic for disabling/enabling the paging buttons reside in that class.
EDIT: upon closer inspection I just found that it's actually not a bug, it's a feature :D
There are 3 ways this SimplePager gives to move forward in a paged list
1) with "Next page" (1 page forward)
2) with "Fast forward" button - moving forward by more pages (enabled when 100+ items are in the list) - This button is enabled by default when using no-param constructor of SimplePager.
3) with "Last Page" button. This is disabled by default.
So in our case (List of tasks - can get quite long when displaying All tasks in a Grid view) I would recommend enabling the "Last Page" button by using different constructor in TasksListViewImpl class.
Sounds good.. i will check it out and change the bz status
Fixed in master
The commit that fixes this problem is (note, that BZ number in the commit message is incorrect)
Verified with DR6 deployed on EAP 6.1