Hello everyone,
I recently updated to the last CVS version of Seam and suddenly my EntityQuery objects always return one record less that I set using setMaxResults.
e.g. When I set max results to 5 per page, only 4 records are shown.
When hitting "Next" i am presented the records 6 through 9, etc.
The 5th record never gets shown.
Is this a known bug or do I have to change something in my Objects that extend EntityQuery?
Kind regards,
dj
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4050477#4050477
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4050477
Hi Ruchika,
I encountered the same problem with Suns RI.
The problem is: the faces context is initialized the first time you make a call to the faces servlet. This does not happen if yo call the page directly.
Solution 1:
browse to "welcome.faces" (or "welcome.jsf", depending on the faces url pattern) instead of "welcome.jsp".
Solution 2:
build a plain JSP index page which links to your faces page. This index page should contain this link:
<a href="welcome.faces">Start page</a>
Solution 3:
the index page contains a redirect to your jsf page:
<%@ page session="false" language="java" contentType="text/html; charset=ISO-8859-1"%>
| <% response.sendRedirect("geometricmodel.faces"); %>
Hope this helps
Wolfgang
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4050475#4050475
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4050475