[jboss-user] [JBoss Seam] - Re: pagination with lazy loading for readonly tables, seamdi

2007-12-07 Thread petekol
[EMAIL PROTECTED] wrote : petekol wrote : [EMAIL PROTECTED] 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

[jboss-user] [JBoss Seam] - Re: pagination with lazy loading for readonly tables, seamdi

2007-12-07 Thread petekol
[EMAIL PROTECTED] 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

[jboss-user] [JBoss Seam] - pagination with lazy loading for readonly tables, seamdiscs

2007-12-07 Thread petekol
seamdiscs example application is a good example how to implement pagination with data lazy loading of readonly tables. I can see though that issued sqls are far far from optimal: seam-discs/discs.seam: 11:05:22,512 INFO [STDOUT] Hibernate: select count(*) as col_0_0_ from Disc disc0_

[jboss-user] [JBoss Seam] - Seam and Global JNDI Context

2007-09-21 Thread petekol
I think that seam lookups objects by global names makes some problems specially for not Jboss ASs. Is there realy a reason for that? Yes, ejb name is no unique to EAR but to JAR. Duaring seam scanning jars it can put this info in a component. Are any plans to go to portable JDNI lookup

[jboss-user] [JBoss Seam] - Re: nested conversation kills its parent if id is specified

2006-07-27 Thread petekol
[EMAIL PROTECTED] wrote : All beans instantiated during a conversation go into the current (ie. most nested) conversation. it is clear -) bean1: showBean2 = false; @Begin(join=true) m1() { some code here; showBean2 = true; } bean2: @Begin(nested=true) m3() { some code here; }

[jboss-user] [JBoss Seam] - Re: nested conversation kills its parent if id is specified

2006-07-27 Thread petekol
sorry that i am a bit noisy here -) how can a button/link end a nested conversation (by execution of a method with @end) and then execute some method (refresh) in parent conversation in elegant way? View the original post :

[jboss-user] [JBoss Seam] - Re: nested conversation kills its parent if id is specified

2006-07-26 Thread petekol
[EMAIL PROTECTED] wrote : It is almost always wrong to use a constant conversation id in @Begin. Have you actually properly understood the use of id in @Begin? Yes, I hope I understand it -), in this case it is for modal action of creating a new entity but for test purpose anyway. Can you

[jboss-user] [JBoss Seam] - Re: nested conversation kills its parent if id is specified

2006-07-25 Thread petekol
in ConversationInterceptor.endOrBeginLongRunningConversation getOutcomeForConversationId is called before beginConversationIfNecessary that is wrong because it calls updateCurrentConversationId on old conversation. so i shifted beginConversationIfNecessary(method, result); up and it works now.

[jboss-user] [JBoss Seam] - many nested conversations(of one level) one one page

2006-07-24 Thread petekol
is not possible as far as i understand. I would like to have possibility to have many nested conversations for different regions of a page. Let's say parent - many children CRUD where a user can edit many children simultaneously. With current Seam model i can not come up with a

[jboss-user] [JBoss Seam] - Re: nested conversation kills its parent if id is specified

2006-07-24 Thread petekol
petekol wrote : @Begin(id=newEmp, nested = true, ifOutcome = newPage) | kills it's parent conversation and creates two new conversations where newEmp is a root one. | | @Begin( nested = true, ifOutcome = newPage) works without problems. | | could it be a bug? sorry, seam does

[jboss-user] [JBoss Seam] - Re: how to start new conversation, new nested conversation a

2006-07-21 Thread petekol
so, a single request can not create new conversation with nested one, right? may be this annotation should do it @Begin(join=true, nested=true)? -) the problem i have then is how to say in what conversation a new beans go View the original post :

[jboss-user] [JBoss Seam] - Re: how to start new conversation, new nested conversation a

2006-07-21 Thread petekol
how can i put bean2 in to nested context after a user press m1,m3 buttons so that the bean is read-write? bean1: showBean2 = false; @Begin(join=true) m1() { some code here; showBean2 = true; } bean2: @Begin(nested=true) m3() { some code here; } index.xhtml h:form

[jboss-user] [JBoss Seam] - Re: @DataModel for a component problem

2006-07-21 Thread petekol
i have found out that a component needs a @Name dummy annotation for @DataModel @DataModelSelection @Logger and may be other to work properly if i create a component from components.xml. i use jboss-seam-1.0.1.GA View the original post :

[jboss-user] [JBoss Seam] - how to start new conversation, new nested conversation and c

2006-07-20 Thread petekol
@Begin(join=true) m1() { some code here; m2 } @Begin(nested=true) m2() { some code here; create component here that belongs to nested conversation; } does not create nested conversation, should it? View the original post :

[jboss-user] [JBoss Seam] - Re: how to start new conversation, new nested conversation a

2006-07-20 Thread petekol
the root of the problem i have is 1) why bean2 is created when the page is rendered first time indepandantly from rendered property 2) why click on m1 does not create conversation + nested conversation 3) i do not know how to instanciate new bean2 in nested conversation bean1: showBean2 =

[jboss-user] [JBoss Seam] - Re: @DataModel for a component problem

2006-07-17 Thread petekol
can anyone can comment on this? i still can not get @DataModel working for a bean defined in components.xml View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3958554#3958554 Reply to the post :

[jboss-user] [JBoss Seam] - @DataModel for a component problem

2006-07-14 Thread petekol
as my first seam sample appl i would like to create a CRUD component with parent/child (or many configurable children) functionality. If i use @DataModel in component the annotated property is not available on the page. I can access methods and other props of the component thought. It does