[jboss-user] [JBoss Seam] - Re: EntityQuery: showing last page with no results?

2007-05-30 Thread [EMAIL PROTECTED]
Thanks, fixed. Very confusing, since subList() is different to substring() in this respect :-( View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4049872#4049872 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4049872

[jboss-user] [JBoss Seam] - Re: EntityQuery: showing last page with no results?

2007-05-23 Thread pampam
Hi, I backported the changes to 1.2.1.GA, and there seams to be a small bug. The truncateResultList should return the nr of max results and not max results -1. return results.subList(0, mr-1); should be return results.subList(0, mr-1); Robert View the original post :

[jboss-user] [JBoss Seam] - Re: EntityQuery: showing last page with no results?

2007-05-23 Thread pampam
this should of course be return results.subList(0, mr); View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4047924#4047924 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4047924 ___

[jboss-user] [JBoss Seam] - Re: EntityQuery: showing last page with no results?

2007-05-18 Thread [EMAIL PROTECTED]
I implemented this feature (it is something I meant to implement ages ago) in CVS. My implementation is more efficient ;-) View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4046967#4046967 Reply to the post :

[jboss-user] [JBoss Seam] - Re: EntityQuery: showing last page with no results?

2007-05-09 Thread hstang
Thanks. Have you reported this to JIRA? View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4044345#4044345 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4044345 ___ jboss-user mailing

[jboss-user] [JBoss Seam] - Re: EntityQuery: showing last page with no results?

2007-05-09 Thread fernando_jmt
Not yet. I'm tested with max-results defined. But I din't test with no max-result (not paged) defined. And also I'm thinking about to contribute some improvements, like total pages, current page, and some other minus bugs I found. When I will have this ok, I will report the errors and suggest

[jboss-user] [JBoss Seam] - Re: EntityQuery: showing last page with no results?

2007-05-09 Thread hstang
Last night I already created a JIRA issue so just add to it when you are ready. http://jira.jboss.com/jira/browse/JBSEAM-1306 View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4044367#4044367 Reply to the post :

[jboss-user] [JBoss Seam] - Re: EntityQuery: showing last page with no results?

2007-05-08 Thread fernando_jmt
If you are using the query with max-results defined, then you must to extend the EntityQuery class and override the following methods as follows: | @Override | @Transactional | public long getLastFirstResult() { | | long page = (getResultCount() / getMaxResults()) *