[jboss-user] [JBoss Seam] - Re: Help, problem

2008-01-15 Thread nicoliniyo
ok, solved, I've just Overrided the HashCode and Equals methods, that was all, do not Override toString() method. | @Override | public boolean equals(Object obj) { | if (obj == null) { | return false; | } | if (getClass() != obj.getClass()) {

[jboss-user] [JBoss Seam] - Re: Help, problem

2008-01-06 Thread [EMAIL PROTECTED]
You need to use an SMPC with the entity converter and configure it components.xml if not called entityManager. I improved the error message in CVS (no more NPE :) View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4117398#4117398 Reply to the post : http://www.j

[jboss-user] [JBoss Seam] - Re: Help, problem

2008-01-05 Thread odedia
I'm stuck on the exact same problem, if anyone has the answer, it would be great. Thanks :). View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4117327#4117327 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4117327

[jboss-user] [JBoss Seam] - Re: Help, problem

2007-12-20 Thread nicoliniyo
ok, begginers mistake!, fixed! ( in the wrong line) | ... | | | | | | But the problem persist: | java.lang.NullPointerException | at org.jboss.seam.ui.converter.EntityConverterStore.getEntityManager(EntityConverterStore.java:81) | at org.j

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

2007-05-08 Thread petemuir
I updated the SeamProblemsFAQ to cover this in more depth - a more suitable place I think. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4044096#4044096 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4044096 ___

[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 somet

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

2007-05-08 Thread petemuir
"Reference Manual" wrote : The Seam Application Framework only works with Seam-managed persistence contexts. By default, the components will look for a persistence context named entityManager. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4044018#4044018 Rep

[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 examp

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

2007-05-07 Thread petemuir
Show your components.xml View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4043764#4043764 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4043764 ___ jboss-user mailing list jboss-

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

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

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

2007-05-05 Thread petemuir
You've got an NPE in you own code. Fix it. At least show the code that gives the NPE! View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4043428#4043428 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4043428 __