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
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
Here is the code
| public class FooHome extends EntityHomeFoo {
| @In EntityManage em
| @Transactional
| public String persist() {
| getEntityManager().joinTransaction();
| getEntityManager().persist( getInstance() );
| getEntityManager().flush();
|
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
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 :
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;
|
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