[jboss-user] [JBoss Seam] - Re: How bad is unused conversations?

2007-07-24 Thread azalea
Hi Gavin, how do you think about controlling the number of the active conversations per user(session)? That means that the old conversations will be destroyed when the number of the user's active conversations is beyond the maximum number of the conversations per user(session). View the origi

[jboss-user] [JBoss Seam] - Re: When joinTransaction() should I call?

2007-07-17 Thread azalea
Hi, I thought that the seam-managed transaction propagated a transaction automatically like the container-managed transaction. That was my misunderstanding. Sorry for my stupid questions :) View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4065229#4065229 Repl

[jboss-user] [JBoss Seam] - Re: Reccomend me a SEAM book

2007-07-17 Thread azalea
This book seems to be published soon. http://www.apress.com/book/bookDisplay.html?bID=10299 But I can't find the index of this book. And I don't know which seam version it is based on and how practical it is. I hope that Gavin will write a seam book("Seam in Action"?) for us in the near future.

[jboss-user] [JBoss Seam] - When joinTransaction() should I call?

2007-07-17 Thread azalea
Hi, Now I struggle with the transaction and persistence context propagation :( I found that the joinTransaction() methods were called in the following codes: (1)EntityHome.joinTransaction() are called in persist(), update() and remove() of the EntityHome(with @Transactional). (2)seam-managed-Ent

[jboss-user] [JBoss Seam] - Re: EntityHome and optimistic transaction

2007-07-13 Thread azalea
Hi, lisaanm. Thanks for your help. I was also able to solve the problem by using @Version and EntityManager.lock() :) Thanks a lot. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4064085#4064085 Reply to the post : http://www.jboss.com/index.html?module=bb

[jboss-user] [JBoss Seam] - Re: EntityHome and optimistic transaction

2007-07-12 Thread azalea
Hi, pete. Thanks for your comment. I'll try to write my dirty checking code. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4063754#4063754 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4063754 __

[jboss-user] [JBoss Seam] - Re: two basic questions for EntityHome

2007-07-12 Thread azalea
Hi, I initialized the EntityHome states in the following code. | public class PersonManager extends EntityHome { | | ... ... | | @Begin(join=true) | public void startCreate() { | debug("startCreate() called: id[#0]", getId()); | setId(null);

[jboss-user] [JBoss Seam] - Re: two basic questions for EntityHome

2007-07-11 Thread azalea
Hi, anonymous wrote : | azalea, does a context variable named "EntityHomeName.instance" gets set in your case, too? | Yes, it does. anonymous wrote : | I think it happens in ManagedEntityIdentityInterceptor, | Thanks. Hmmm... It seems to be very difficult for me to under

[jboss-user] [JBoss Seam] - Re: EntityHome and optimistic transaction

2007-07-11 Thread azalea
Hi, I think so, too. maybe Hibernate's automatic dirty checking ... Because I'm newbie in not oly Seam but also Hibernate, I can't still find the solutions :( I will search hibernate forum or/and buy Gavin's book :) View the original post : http://www.jboss.com/index.html?module=bb&op=viewto

[jboss-user] [JBoss Seam] - Re: two basic questions for EntityHome

2007-07-11 Thread azalea
Hi, Seam framework master :) Thanks again. anonymous wrote : | For your question2, you can override the *Messages() methods. | I see! I do not yet understand the answer of the question 1. I will see seam source code now. Thanks. View the original post : http://www.jboss.com/index.html?m

[jboss-user] [JBoss Seam] - Re: EntityHome and optimistic transaction

2007-07-11 Thread azalea
Hi, hstang. Thanks for your reply. anonymous wrote : | What does "edit" button do? does it call entityHome.update ? | Yes, it does. anonymous wrote : | Maybe somewhere the dirty flag is not being set and you may to forcefully set that dirty flag to force update. | I tried setDirty(

[jboss-user] [JBoss Seam] - EntityHome and optimistic transaction

2007-07-11 Thread azalea
Hi, Now I struggle with EntityHome :) my environments: JBoss AS 4.2.0.GA Seam 2.0.0.BETA1(CVS) Seam gen-generated project(ear) I have a simple CRUD app using EntityHome. The app needs the optimistic transaction. Scenario: 1. In browser tab#1, display the person list. 2. In tab#1, select a

[jboss-user] [JBoss Seam] - two basic questions for EntityHome

2007-07-11 Thread azalea
Hi, I'm writing a CRUD app using a extended EntityHome class. *** Q1 *** I want to reuse one EntityHome instance for more than one CRUD operations in a long-running conversation. But EntityHome instance is caching the entity and other states. How can I reset the state of EntityHome instance befo

[jboss-user] [JBoss Seam] - Re: avoiding excessive bijection question

2007-07-09 Thread azalea
Do you define getters in IndexPage interface? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4062183#4062183 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4062183 ___ jboss-use

[jboss-user] [JBoss Seam] - Re: ClassCastException - FullTextHibernateSessionProxy

2007-07-08 Thread azalea
Hi, I added hibernate-search.jar in my ear. Now my seam app works well :) Thanks a lot. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4061733#4061733 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4061733

[jboss-user] [JBoss Seam] - Re: ClassCastException - FullTextHibernateSessionProxy

2007-07-08 Thread azalea
Hi, I tested with new Seam CVS. The previous code worked well in integrating testing environment(ant test), but the diffrent ClassCastException was thrown in JBoss AS 4.2.0. | Caused by java.lang.ClassCastException with message: "org.hibernate.search.impl.FullTextSessionImpl" | | org.jbo

[jboss-user] [JBoss Seam] - Re: ClassCastException - FullTextHibernateSessionProxy

2007-07-08 Thread azalea
Thanks for your reply. This is my first report :) http://jira.jboss.com/jira/browse/JBSEAM-1621 View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4061689#4061689 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4061689 _

[jboss-user] [JBoss Seam] - ClassCastException - FullTextHibernateSessionProxy

2007-07-08 Thread azalea
Hi, my enviroments: JBoss AS 4.2.0.GA Seam 2.0.0.BETA1(CVS) Seam gen-generated project When DetachedCriteria#getExecutableCriteria in the following code is invoked, "java.lang.ClassCastException: org.jboss.seam.persistence.FullTextHibernateSessionProxy" is thrown. This code worked with Seam1.3.0

[jboss-user] [JBoss Seam] - Re: Jsf form without entity component

2007-07-07 Thread azalea
Now session beans can be backing beans in Seam application, and usually backing beans have getters/setters. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4061638#4061638 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=40

[jboss-user] [JBoss Seam] - Re: Using non-EJB annotated POJO as backing bean

2007-07-05 Thread azalea
Do you define a getter method for "name" property? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4060878#4060878 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4060878 ___ jbos

[jboss-user] [JBoss Seam] - Re: DEFAULT concurrent request timeout value for session-sco

2007-07-03 Thread azalea
Hi, I understood that there was no way to configure the default timeout value now. DEFAULT timeout value is fixed with Synchronized.DEFAULT_TIMEOUT(1000msec). View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4060219#4060219 Reply to the post : http://www.jboss

[jboss-user] [JBoss Seam] - Re:

2007-07-03 Thread azalea
Hi, If you see section in http://docs.jboss.com/seam/2.0.0.B1/reference/en/html/controls.html, the problem will be solved. Define Seam-managed persistence context named "entityManager" in components.xml. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4060217

[jboss-user] [JBoss Seam] - Re:

2007-07-03 Thread azalea
I noticed one thing. | | ? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4060213#4060213 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4060213 ___ jboss-user mailing

[jboss-user] [JBoss Seam] - DEFAULT concurrent request timeout value for session-scoped

2007-07-03 Thread azalea
Hi, The following is descriped in Seam 2.0.0.BETA1 reference guide, 3.2.2 Stateful session beans. anonymous wrote : | Concurrent requests to session-scoped stateful session beans are always serialized by Seam. | I can change maximum wait time for a thread attempting to gain a lock on Seam

[jboss-user] [JBoss Seam] - Re: concurrency of conversation-scoped components

2007-07-03 Thread azalea
Can anyone help? Thanks. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4060005#4060005 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4060005 ___ jboss-user mailing list jboss-

[jboss-user] [JBoss Seam] - concurrency of conversation-scoped components

2007-07-02 Thread azalea
Hi, I have two questions. 1. JBoss Seam 2.0.0.BETA1 Reference Guide - 3.1.10. Concurrency model: anonymous wrote : | Seam enforces a single thread per conversation per process model for the conversation context by serializing concurrent requests in the same long-running conversation context.

[jboss-user] [JBoss Seam] - Can I control the live duration of

2007-06-22 Thread azalea
Hi, Seam "RememberMe" cookie, which name is "org.jboss.seam.security.username", seems to be effective for one year. How can I control the live duration of this cookie? Thanks for your help. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4056859#4056859 Reply

[jboss-user] [JBoss Seam] - Re: Conversation scoped component automatically outjected

2007-06-22 Thread azalea
Hi, Yeah, that doesn't outject the rfqRequest. But the state of the rfqRequest instance is changed via rfqRequest#setName method. For example, the following facesMessages is not outjected. But we will see the error message in redirected view page when the error occurs. | .. | @In | pr

[jboss-user] [JBoss Seam] - Re: Strange things happen with seam security

2007-06-22 Thread azalea
Hi, Maybe due to "RememberMe" ? If so, delete the cookie which name is "org.jboss.seam.security.username" in your browser. If you don't need "RememberMe", remove the checkbox in login page. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4056839#4056839 Repl

[jboss-user] [JBoss Seam] - Re: DataModelSelection always returns first row from h:dataT

2007-06-22 Thread azalea
my mistake for EL expression :) | rendered="#{cartList.rowCount == 0}" | rendered="#{cartList.rowCount > 0}" | View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4056822#4056822 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode

[jboss-user] [JBoss Seam] - Re: DataModelSelection always returns first row from h:dataT

2007-06-22 Thread azalea
Hi, #{cartList} is not List but DataModel. Try the following: | rendered="{cartList.rowCount == 0}" | rendered="{cartList.rowCount > 0}" | If you see dvd store example in JBoss Seam package more carefully, you may be more happy :) View the original post : http://www.jboss.com/index.ht

[jboss-user] [JBoss Seam] - Re: replacement for ifNotBegunOutcome in @Conversational

2007-06-22 Thread azalea
Hi, Yeah, that didn't work. But the following seems to work. | | | View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4056814#4056814 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4056814 ___

[jboss-user] [JBoss Seam] - Re: replacement for ifNotBegunOutcome in @Conversational

2007-06-22 Thread azalea
Hi, | | | If "/offer*.html" matches just pages which need the conversation and you access that any page without conversation, I think Seam will redirect to "/somepage.xhtml". Please try and tell me that result :) View the original post : http://www.jboss.com/index.html?module=bb&op

[jboss-user] [JBoss Seam] - adds page parameters into URL automatically?

2007-06-21 Thread azalea
Hi, seems to add page parameters into URL automatically. Is this right? | | For example, this tag created the following URL: http://localhost:8080/myseam/DepartmentList.xhtml?order=name+desc "order" is a page parameter. How can I stop adding page parameters into URL automatically? --

[jboss-user] [JBoss Seam] - Re: NonFacesRequest.invokeApplication() never invoked?

2007-06-21 Thread azalea
Thank you very much, Gavin. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4056565#4056565 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4056565 ___ jboss-user mailing list jbo

[jboss-user] [JBoss Seam] - NonFacesRequest.invokeApplication() never invoked?

2007-06-21 Thread azalea
Hi, The invokeApplication() method in the following code seems not to be invoked. | public class FooTest extends SeamTest { | @Test | public void testFoo() throws Exception { | | new NonFacesRequest() { | | @Override |

[jboss-user] [JBoss Seam] - Re: replacement for ifNotBegunOutcome in @Conversational

2007-06-21 Thread azalea
Hi | | View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4056557#4056557 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4056557 ___ jboss-user mailing list jboss-user@lists

[jboss-user] [JBoss Seam] - Hibernate's version in Seam CVS

2007-06-12 Thread azalea
Hi, I'm integration testing using seam(CVS) gen-generated project. Hibernate in Seam CVS: -Hibernate 3.2 cr2 -Hibernate EntityManager 3.2.0 cr1 -Hibernate Annotations 3.2.0 cr1 These are not same as the versions of Hibernate included in JBoss AS 4.2.0.GA which is target of Seam CVS(1.3.0). And

[jboss-user] [JBoss Seam] - java.lang.NoClassDefFoundError: net/sf/ehcache/CacheExceptio

2007-06-06 Thread azalea
Hi In Seam Gen-generated project, I want to Unit Testing a stateful Seam component. I want to create EntityManager in Unit Testing Code for injecting it in the Seam component with SeamTest#setField(). Running "ant test", java.lang.NoClassDefFoundError is thrown at this code. | public class Fo

[jboss-user] [JBoss Seam] - Re: How can I embed label value in validation error message?

2007-06-02 Thread azalea
Sorry for typo of . View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4050719#4050719 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4050719 ___ jboss-user mailing list jboss-use

[jboss-user] [JBoss Seam] - How can I embed label value in validation error message?

2007-06-02 Thread azalea
Hi, With Hibernate Validator, I want to check input fields. | | | | | | | | | | | | | | | | | | | | | | |

[jboss-user] [JBoss Seam] - Re: s:validateAll and resource bundles

2007-05-30 Thread azalea
Hi, hstang. Try this code on JBoss AS 4.2. | @Length(min = 2, message = "{city.message}") | String city; | View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4049936#4049936 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=re

[jboss-user] [JBoss Seam] - Re: EntityQuery.nextExists not working correctly?

2007-05-30 Thread azalea
Hi. Thanks for your replies. I tried again on JBoss AS 4.2 & Seam CVS. Now EntityQuery#isNextExists (and getResultList also) worked correctly. Arigato :) View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4049932#4049932 Reply to the post : http://www.jboss.com/

[jboss-user] [JBoss Seam] - EntityQuery.nextExists not working correctly?

2007-05-30 Thread azalea
Hi, I'm new in JBoss Seam and reading Yuan's Seam Book. I want to display multipage query results with EntityQuery(Seam CRUD App Framework). I want to display 3 data records(EntityQuery#getMaxResults) per page, and now there are 6 data records in database table. Then there are "Next Page" and "La