[jira] [Commented] (OFBIZ-7020) Page navigation problem with grid and include-grid

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[jira] [Commented] (OFBIZ-7020) Page navigation problem with grid and include-grid

Nicolas Malin (Jira)

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

Montalbano Florian commented on OFBIZ-7020:
-------------------------------------------

The patch is working fine. Thank you [~rohit.koushal] !

I see that this "NO_PAGINATOR" doesn't appear in other forms. Should we put a comment to explain what it is doing here ?
Something such as : "This field "NO_PAGINATOR" prevents the incrementation of the paginator of the page. In this grid, when multiple login exist for a same Party, a grid was included in the parent grid, incrementing the paginator. Thus, the bottom page paginator was created with invalid value preventing access to the next page of data." (it may be a little too long).

What do you think of it ?



> Page navigation problem with grid and include-grid
> --------------------------------------------------
>
>                 Key: OFBIZ-7020
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-7020
>             Project: OFBiz
>          Issue Type: Bug
>          Components: framework
>    Affects Versions: Trunk
>            Reporter: Montalbano Florian
>            Assignee: Arun Patidar
>            Priority: Minor
>              Labels: grid, include-grid, pagination
>         Attachments: OFBIZ-7020.patch
>
>
> The bottom navigation buttons are not working correctly in pages with grid and include-grid.
> How to reproduce  :
> 1) Connect to OFBiz
> 2) Go to the Party component
> 3) Let all field blank and do a search
> 4) Scroll down and try to use the next result page button
> Result : The result page is still the same, the upper navigation bar shows "Page 1" and the bottom one "Page 2".
> Problem : With some help, I figured out where the problem is.
> The result of the search is displayed in a grid. But inside this grid can show up "include-grid" (the field User Login ID for example). Each time a grid is created, it calls the function "WidgetWorker.incrementPaginatorNumber(context);" which increments the paginator number by one.
> So when there are more than one grid (and include-grid) on a page, the paginator number is modified. This means that the upper navigation bar paginator number and the one from the bottom bar is not the same.
> The bottom navigation bar is then set with wrong value and the URL put in each navigation button is corrupted, thus not correctly redirecting to the good page.
> If you look at the URL after clicking on the bottom next button, you will see the "bad" paginator number.
> I hope this can lead someone to a solution, I lack experiences on OFBiz to provide a patch on this issue.
> Thanks,
> Florian Montalbano



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)