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

Bruno Busco commented on OFBIZ-3194:
------------------------------------

I retrieved from the ML the original use-case that was causing the problem:

"It seems that with a view-size less than 20 (eg: 5), and only 19 results (ie 
between view-size and 20), there will be no prev/next stuff."

The problem is originated IMO from a view-size that is not in the list of 
availableViewSizes.

In this case the property could be something like this:

widget.form.availableViewSizes=[5, 20, 30, 50, 100, 200];
widget.form.defaultViewSize = 5;

and the suggested code will work!

> Quick look are showing pagination renderNextPrev pagination style when list 
> size is greater than 20
> ---------------------------------------------------------------------------------------------------
>
>                 Key: OFBIZ-3194
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-3194
>             Project: OFBiz
>          Issue Type: Bug
>          Components: framework
>    Affects Versions: SVN trunk
>            Reporter: Divesh Dutta
>            Assignee: Jacopo Cappellato
>             Fix For: SVN trunk
>
>         Attachments: OFBiz-3194.patch
>
>
> Quick look are showing pagination renderNextPrev pagination style when list 
> size is greater than 20.
> In htmlFormMacroLibrary.ftl below given code snippet is hard-coded. :
>  {<#if listSize gt 20>}
> This can be changed to
>  {<#if listSize gt viewSize>}
> as viewSize is passed as parameter in macro renderNextPrev. This is also 
> reported by Matthieu Bollot in developer mailing list.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to