You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@myfaces.apache.org by "Emeric Simonneau (JIRA)" <my...@incubator.apache.org> on 2005/04/20 15:20:25 UTC
[jira] Created: (MYFACES-201) Problem with dataScroller and fast forward
Problem with dataScroller and fast forward
------------------------------------------
Key: MYFACES-201
URL: http://issues.apache.org/jira/browse/MYFACES-201
Project: MyFaces
Type: Bug
Versions: 1.0.9 beta
Reporter: Emeric Simonneau
Hello,
This is a part of my JSP :
<x:dataTable id="myTable"
value="#{myBean.myList}" var="element"
preserveDataModel="false" rows="10" renderedIfEmpty="false">
<h:column>
<f:facet name="header">
<x:outputText value="Column 1" />
</f:facet>
<h:outputText value="#{element.label}" />
</h:column>
</x:dataTable>
<h:panelGrid columns="1">
<x:dataScroller id="myTable_scroller" for="myTable"
fastStep="5" pageCountVar="pageCount" pageIndexVar="pageIndex"
paginator="true" paginatorMaxPages="5"
paginatorActiveColumnStyle="font-weight:bold;">
<f:facet name="first">
<h:graphicImage url="images/navigate_first.png" border="0" />
</f:facet>
<f:facet name="last">
<h:graphicImage url="images/navigate_last.png" border="0" />
</f:facet>
<f:facet name="previous">
<h:graphicImage url="images/navigate_previous.png" border="0" />
</f:facet>
<f:facet name="next">
<h:graphicImage url="images/navigate_next.png" border="0" />
</f:facet>
<f:facet name="fastforward">
<h:graphicImage url="images/navigate_fastforward.png" border="0" />
</f:facet>
<f:facet name="fastrewind">
<h:graphicImage url="images/navigate_fastrewind.png" border="0" />
</f:facet>
</x:dataScroller>
<x:dataScroller id="myTable_counter" for="myTable"
pageCountVar="pageCount" pageIndexVar="pageIndex">
<h:outputFormat value="Page {0} / {1}">
<f:param value="#{pageIndex}" />
<f:param value="#{pageCount}" />
</h:outputFormat>
</x:dataScroller>
</h:panelGrid>
All works fine except in this case :
- I have 10 pages of results and the fast-forward value is 5
- The current page is the 6th,
- When I click on the fast-forward button, the paginator try to show the 11th page (so an empty page).
Regards.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira
[jira] Closed: (MYFACES-201) Problem with dataScroller and fast forward
Posted by "Mathias Broekelmann (JIRA)" <my...@incubator.apache.org>.
[ http://issues.apache.org/jira/browse/MYFACES-201?page=all ]
Mathias Broekelmann closed MYFACES-201:
---------------------------------------
Fix Version: Nightly Build
Resolution: Fixed
> Problem with dataScroller and fast forward
> ------------------------------------------
>
> Key: MYFACES-201
> URL: http://issues.apache.org/jira/browse/MYFACES-201
> Project: MyFaces
> Type: Bug
> Versions: 1.0.9 beta
> Reporter: Emeric Simonneau
> Assignee: Mathias Broekelmann
> Fix For: Nightly Build
>
> Hello,
> This is a part of my JSP :
> <x:dataTable id="myTable"
> value="#{myBean.myList}" var="element"
> preserveDataModel="false" rows="10" renderedIfEmpty="false">
> <h:column>
> <f:facet name="header">
> <x:outputText value="Column 1" />
> </f:facet>
> <h:outputText value="#{element.label}" />
> </h:column>
> </x:dataTable>
> <h:panelGrid columns="1">
> <x:dataScroller id="myTable_scroller" for="myTable"
> fastStep="5" pageCountVar="pageCount" pageIndexVar="pageIndex"
> paginator="true" paginatorMaxPages="5"
> paginatorActiveColumnStyle="font-weight:bold;">
> <f:facet name="first">
> <h:graphicImage url="images/navigate_first.png" border="0" />
> </f:facet>
> <f:facet name="last">
> <h:graphicImage url="images/navigate_last.png" border="0" />
> </f:facet>
> <f:facet name="previous">
> <h:graphicImage url="images/navigate_previous.png" border="0" />
> </f:facet>
> <f:facet name="next">
> <h:graphicImage url="images/navigate_next.png" border="0" />
> </f:facet>
> <f:facet name="fastforward">
> <h:graphicImage url="images/navigate_fastforward.png" border="0" />
> </f:facet>
> <f:facet name="fastrewind">
> <h:graphicImage url="images/navigate_fastrewind.png" border="0" />
> </f:facet>
> </x:dataScroller>
> <x:dataScroller id="myTable_counter" for="myTable"
> pageCountVar="pageCount" pageIndexVar="pageIndex">
> <h:outputFormat value="Page {0} / {1}">
> <f:param value="#{pageIndex}" />
> <f:param value="#{pageCount}" />
> </h:outputFormat>
> </x:dataScroller>
> </h:panelGrid>
> All works fine except in this case :
> - I have 10 pages of results and the fast-forward value is 5
> - The current page is the 6th,
> - When I click on the fast-forward button, the paginator try to show the 11th page (so an empty page).
> Regards.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira