-
1. Re: pagination with lazy loading for readonly tables, seamdi
pmuir Dec 7, 2007 6:11 AM (in response to petekol)This is the JSF lifecycle, it is "needed". You could work around this by putting the query into a longer scope than request/event. This "problem" occurs in normal queries too.
We should probably merge the lazy loading code from seamdiscs into a seam module and build one for richfaces. -
2. Re: pagination with lazy loading for readonly tables, seamdi
petekol Dec 7, 2007 7:45 AM (in response to petekol)"pete.muir@jboss.org" wrote:
This is the JSF lifecycle, it is "needed". You could work around this by putting the query into a longer scope than request/event. This "problem" occurs in normal queries too.
We should probably merge the lazy loading code from seamdiscs into a seam module and build one for richfaces.
<framework:entity-query name="discs" ejbql="select disc from Disc disc" scope="CONVERSATION" order="disc.name ASC" max-results="5"/>
<persistence:managed-persistence-context name="entityManager"
auto-create="true" scope="CONVERSATION"
persistence-unit-jndi-name="java:/seamdiscsEntityManagerFactory" />
longer scope does not work for Query component.....it's DataModel handling makes it not possible
may be i do something wrong so can you point me exactly what should i do to fix the "problem". I think 3 counts + 2 selects is not for real applications but for showcases only -
3. Re: pagination with lazy loading for readonly tables, seamdi
pmuir Dec 7, 2007 8:03 AM (in response to petekol)"petekol" wrote:
"pete.muir@jboss.org" wrote:
longer scope does not work for Query component.....it's DataModel handling makes it not possible
In what way? Yes, you need to refresh the datamodel of course. -
4. Re: pagination with lazy loading for readonly tables, seamdi
petekol Dec 7, 2007 8:50 AM (in response to petekol)"pete.muir@jboss.org" wrote:
"petekol" wrote:
"pete.muir@jboss.org" wrote:
longer scope does not work for Query component.....it's DataModel handling makes it not possible
In what way? Yes, you need to refresh the datamodel of course.
i mean not generally but for implementation from seamdiscs -
5. Re: pagination with lazy loading for readonly tables, seamdi
brachie Dec 13, 2007 5:47 AM (in response to petekol)Hi,
I also think lazy loading would be great for Richfaces :-)
However, thank you Pete for implementing this for Trinidad. Could you please update the seamdiscs example to the latest version of Trinidad (1.2.4)? The benefit would be that it supports ajax-based sorting and paging so only the table is reloaded on this events and not the complete page.
I tried it for my own, it works so far but when using the latest Trinidad libs I get the following errors:
2007-12-13 11:29:23,574 ERROR [STDERR] 13.12.2007 11:29:23 org.apache.myfaces.trinidadinternal.renderkit.core.CoreRenderKit createResponseWriter
SCHWERWIEGEND: No RenderingContext has been created.
Any help would be appreciated!!
Regards,
b. -
6. Re: pagination with lazy loading for readonly tables, seamdi
pmuir Dec 13, 2007 6:01 AM (in response to petekol)Please open a jira issue so we don't forget.
-
7. Re: pagination with lazy loading for readonly tables, seamdi
brachie Dec 13, 2007 7:08 AM (in response to petekol)"pete.muir@jboss.org" wrote:
Please open a jira issue so we don't forget.
Hi Pete,
ok done: http://jira.jboss.org/jira/browse/JBSEAM-2374
I hope everything is correct, because this is my first jira issue entry!
Greetings,
Alexander