You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@ofbiz.apache.org by "ASF subversion and git services (Jira)" <ji...@apache.org> on 2024/02/16 07:45:00 UTC

[jira] [Commented] (OFBIZ-12817) Pagination: jump to page with AJAX enabled is broken

    [ https://issues.apache.org/jira/browse/OFBIZ-12817?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17817855#comment-17817855 ] 

ASF subversion and git services commented on OFBIZ-12817:
---------------------------------------------------------

Commit d0373f177417ef867ca8ab16c6260a8fa471ddce in ofbiz-framework's branch refs/heads/trunk from Florian Motteau
[ https://gitbox.apache.org/repos/asf?p=ofbiz-framework.git;h=d0373f1774 ]

Fixed: pagination, jump to page with AJAX enabled is broken (OFBIZ-12817 - #637)

Jump to page with AJAX enabled fetches the wrong page. 
We need to decrement the value entered by the user by one (page numbers are zero-indexed)

Thanks: Néréide Team :)

> Pagination: jump to page with AJAX enabled is broken
> ----------------------------------------------------
>
>                 Key: OFBIZ-12817
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-12817
>             Project: OFBiz
>          Issue Type: Bug
>    Affects Versions: 22.01.01, Upcoming Branch, 18.12.08
>            Reporter: Florian Motteau
>            Priority: Minor
>         Attachments: image-2023-05-10-08-24-49-082.png, image-2023-05-10-08-26-47-399.png
>
>
> On a paginated grid/form which extends CommonDynamicGrid/CommonDynamicForm, with ajaxEnabled=true, the framework builds an input allowing user to jump to a specific page number.
> This input gets a onchange event that triggers a request for the content of the target page, but the VIEW_INDEX parameter is off by one : when asking for page 6 we fetch the content of page 5 (page numbers are zero-indexed, so the value entered by the user should be decremented) :
> !image-2023-05-10-08-24-49-082.png|width=724,height=133!
> In this screenshot, the VIEW_INDEX should be set to "this.value - 1", just like the non AJAX pagination widget does :
> !image-2023-05-10-08-26-47-399.png|width=671,height=76!



--
This message was sent by Atlassian Jira
(v8.20.10#820010)