[jboss-user] [JBoss Seam] - Re: Help: problem with EntityHome

2007-05-08 Thread qzhengyy
After some debugging I found the cause of the problem my self. In components.xml you need to configure managed-persistence-context and also in persistence.xml you need to set jboss.entity.manager.factory.jndi.name property for your database. I try to learn seam from the hotel booking

[jboss-user] [JBoss Seam] - Re: Help: problem with EntityHome

2007-05-08 Thread qzhengyy
That sentence make sense now after all the trouble I have been through. However, for a beginner, that sentence alone probably will not have much help initially. It would be more helpful if it states that you have to this and that or refer to the corresponding sections. Otherwise its become

[jboss-user] [JBoss Seam] - Re: Help: problem with EntityHome

2007-05-05 Thread qzhengyy
Here is the code | public class FooHome extends EntityHomeFoo { | @In EntityManage em | @Transactional | public String persist() { | getEntityManager().joinTransaction(); | getEntityManager().persist( getInstance() ); | getEntityManager().flush(); |

[jboss-user] [JBoss Seam] - Help: problem with EntityHome

2007-05-04 Thread qzhengyy
Hi, I am having problem using EntityHome. I have an entity class Foo, follow the Seam documentation in Section 10.2 I define a FooHome class | public FooHome extends EntityHomeFoo { | } | First I get null pointer exception because getEntityManager() returns null. I solve this

[jboss-user] [JBoss Seam] - Re: Help: get exception when using EL to reference a EJB mem

2007-04-20 Thread qzhengyy
Thank you very much for your help. The eda component not available is indeed the root cause of the problem. Qing View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4039395#4039395 Reply to the post :

[jboss-user] [JBoss Seam] - Help: get exception when using EL to reference a EJB member

2007-04-19 Thread qzhengyy
Hi, I am new to Seam. I am playing with the hotel example. I modified main.xhtml to use my own search bean. | | h:form id=searchCriteria | fieldset |h:inputText id=searchString | value=#{edaSearch.searchString} | style=width: 165px; |

[jboss-user] [JBoss Seam] - Re: Help: get exception when using EL to reference a EJB mem

2007-04-19 Thread qzhengyy
Here is the stack trace. Thanks. | javax.faces.el.EvaluationException: /main.xhtml @23,92 value=#{edaSearch.searchString}: Exception getting value of property searchString of base of type : org.javassist.tmp.java.lang.Object_$$_javassist_117 | at