[jboss-user] [JBoss Seam] - Re: Problem outjecting a field
taprogge
do-not-reply at jboss.com
Wed Sep 20 07:30:36 EDT 2006
Well, I found the answer, but that raises even further questions...
It turned out, I had different names for my Charge entity and the fields in my session beans. So the field was not correctly outjected and thus overwritten with null when being injected again on the next method call.
After naming the field like the Entity's @Name annotation, everything works fine.
But I am wondering... how then does one go about having two different instances of one Seam component outjected in the same page?
Imagine you have two car entities in a cataloge and want to present them side-by-side on a single page. The corresponding session bean would have to have two variables car1 and car2 that store the entities. How can you get them both outjected if the field must be named like the entity?
Any insights would be very much appreciated.
Regards,
Phil
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3972895#3972895
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3972895
More information about the jboss-user
mailing list