Bug 974425

Summary: Inconsistent title of pager icon in "Task List (Advanced View)"
Product: [Retired] JBoss BPMS Platform 6 Reporter: Jan Hrcek <jhrcek>
Component: Business CentralAssignee: Mauricio Salatino <msalatin>
Status: CLOSED CURRENTRELEASE QA Contact: Jan Hrcek <jhrcek>
Severity: low Docs Contact:
Priority: low    
Version: 6.0.0CC: rzhang
Target Milestone: DR6   
Target Release: 6.0.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-08-06 20:06:46 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
Paging icon none

Description Jan Hrcek 2013-06-14 07:45:57 UTC
Created attachment 761128 [details]
Paging icon

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):
business-central DR5

Comment 1 Mauricio Salatino 2013-06-24 14:35:55 UTC
fixed in master and beta4

Comment 3 Jan Hrcek 2013-07-02 11:38:24 UTC
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 
<a id="gwt-uid-173" class="btn btn-link disabled GJ--WOXHO" href="javascript:;" data-original-title="Fast forward">

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.

Comment 4 Mauricio Salatino 2013-07-02 19:32:36 UTC
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.

Comment 5 Jan Hrcek 2013-07-03 05:33:40 UTC
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.

Comment 6 Jan Hrcek 2013-07-03 05:49:49 UTC
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.

Comment 7 Mauricio Salatino 2013-07-03 07:46:46 UTC
Sounds good.. i will check it out and change the bz status

Comment 8 Mauricio Salatino 2013-07-03 12:03:34 UTC
Fixed in master

Comment 10 Jan Hrcek 2013-07-11 05:35:16 UTC
The commit that fixes this problem is (note, that BZ number in the commit message is incorrect)

https://github.com/droolsjbpm/jbpm-console-ng/commit/a016848d9b4e835fbf318066f6450a23686e7c28

Comment 11 Jan Hrcek 2013-07-11 12:46:15 UTC
Verified with DR6 deployed on EAP 6.1