[
https://issues.apache.org/jira/browse/OFBIZ-3194?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12778061#action_12778061
]
Bruno Busco commented on OFBIZ-3194:
------------------------------------
Jacques,
in the renderNextPrev there is an hardcoded list of possible viewSize values;
at the moment it is [20, 30, 50, 100, 200].
The correct change would be IMO:
1) Have this list specified as a property setting in addition to the actual
defaultViewSize (i.e. adding something like widget.form.availableViewSizes =
[20, 30, 50, 100, 200]
2) Replace the value 20 in the comparison (the one that has now been replaced
with viewSize) with availableViewSizes[0]
Doing this we vill have the next/prev rendering in any case the number of the
elements in the list is greater of the minimum number of elements the user can
select to be shown.
Is it possible to have a list value for a property? Any pointer to a similar
use?
Does this suggested logic solve the issue that has been reported?
> 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.