[jboss-user] [JBoss Seam] - Re: EntityConverter: Entity Manager not found

2007-08-07 Thread mgrouch
anonymous wrote : 3) No support for xml mapped entities (and you're not going to get this to work afaics) It is possible to get it work using Hibernate API. We need access to hibernate session object and entity. getSession().getSessionFactory().getClassMetadata(getPersistentClass()).getIdentif

[jboss-user] [JBoss Seam] - Re: EntityConverter: Entity Manager not found

2007-08-07 Thread [EMAIL PROTECTED]
"mgrouch" wrote : Yes. Requirement to use SMPC is a problem for me. | I load list of entities via Stateless Session EJB call (so no SMPC). | The entities are reverse engineered from DB at build time by hibernate tools (so no equals() method there). Hmm. Yes, in this case s:convertEntity won't

[jboss-user] [JBoss Seam] - Re: EntityConverter: Entity Manager not found

2007-08-07 Thread mgrouch
Yes. Requirement to use SMPC is a problem for me. I load list of entities via Stateless Session EJB call (so no SMPC). The entities are reverse engineered from DB at build time by hibernate tools (so no equals() method there). Please, take a closer look at my code. Do you think solution provided

[jboss-user] [JBoss Seam] - Re: EntityConverter: Entity Manager not found

2007-08-07 Thread [EMAIL PROTECTED]
mgrouch: So your problem with the entity converter in Seam is that for it to work seamlessly you have to use an SMPC? Or that you have to have an SMPC configured to reload the entities? Or? I would prefer to understand your problem and avoid forking :) View the original post : http://www.jboss

[jboss-user] [JBoss Seam] - Re: EntityConverter: Entity Manager not found

2007-08-07 Thread [EMAIL PROTECTED]
To be Seam managed the entity must be loaded with an SMPC (aka EntityManager injected with @In). You don't have to use an SMPC to load the list (in either version) but, if you don't use an SMPC and a conversation, you must implement equals on your entities. I don't think your problem has anyth

[jboss-user] [JBoss Seam] - Re: EntityConverter: Entity Manager not found

2007-08-06 Thread Newlukai
Is it just since 1.2.1.GA that the entity has to be Seam managed? It could be an explanation for my problem. Fortunately since I tried to update to Seam 2 and then went back to 1.2.1 the problem has gone. But I'm still interested in recovering the reason. Therefore could you please tell me what

[jboss-user] [JBoss Seam] - Re: EntityConverter: Entity Manager not found

2007-08-06 Thread mgrouch
I think my code is better what Seam offers. Scope is whatever you choose to be on a subclass of EntitySelector. You are not restricted by requirement to use SMPC. What if your entity list is coming from stateless session EJB call with no SMPC? My code would work. Seam would give you "Entity Manage

[jboss-user] [JBoss Seam] - Re: EntityConverter: Entity Manager not found

2007-08-06 Thread [EMAIL PROTECTED]
"mgrouch" wrote : EntityConverter and have serious limitation in both | Seam 2.0 and 1.2.1.GA - they require entity to be Seam managed. I hardly think this is a "serious limitation" - you are using Seam after all, and you'd be silly not to use a SMPC with Seam. Anyway, the main problem with

[jboss-user] [JBoss Seam] - Re: EntityConverter: Entity Manager not found

2007-08-06 Thread mgrouch
EntityConverter and have serious limitation in both Seam 2.0 and 1.2.1.GA - they require entity to be Seam managed. I've solved this by not using . Instead I've created generic class EntitySelector which returns list of Ids and converter. I'd extend this class for each dropdown (you probably wou

[jboss-user] [JBoss Seam] - Re: EntityConverter: Entity Manager not found

2007-08-06 Thread Newlukai
I tried it. I really did. But I had to surrender facing the list of things to do to migrate to Seam 2.0. Sorry. So I'm on 1.2.1.GA again. The only major change before this mibehaviour occured was to introduce a @Startup component which is injected to the backing bean. But I don't know why this

[jboss-user] [JBoss Seam] - Re: EntityConverter: Entity Manager not found

2007-08-02 Thread Newlukai
Hehe. OK. I'll test it. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4070279#4070279 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4070279 ___ jboss-user mailing list jboss-u

[jboss-user] [JBoss Seam] - Re: EntityConverter: Entity Manager not found

2007-08-02 Thread [EMAIL PROTECTED]
No, the reason to upgrade is I completely redid the way entity converter works for seam 2 View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4070265#4070265 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4070265

[jboss-user] [JBoss Seam] - Re: EntityConverter: Entity Manager not found

2007-08-02 Thread Newlukai
Hmm. OK. I don't want to try it since it's still beta, but I'll do it next week. Do you have an idea what it could be? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4070233#4070233 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode

[jboss-user] [JBoss Seam] - Re: EntityConverter: Entity Manager not found

2007-08-02 Thread [EMAIL PROTECTED]
Please try using Seam2 View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4070012#4070012 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4070012 ___ jboss-user mailing list jboss-us

[jboss-user] [JBoss Seam] - Re: EntityConverter: Entity Manager not found

2007-08-01 Thread Newlukai
Seam 1.2.1.GA ICEfaces 1.6.0 JBoss AS 4.0.5.GA View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4069752#4069752 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4069752 ___ jboss-us

[jboss-user] [JBoss Seam] - Re: EntityConverter: Entity Manager not found

2007-08-01 Thread [EMAIL PROTECTED]
What seam version? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4069722#4069722 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4069722 ___ jboss-user mailing list jboss-user@l