[jboss-user] [JBoss Seam] - Re: <s:selectItems> confused by binding objects
jquery@interia.pl
do-not-reply at jboss.com
Thu Mar 22 06:03:31 EDT 2007
Hi,
I spent a couple days on it and I've found that fetching related object helps, so I changed the query on the following
| person = (Person) entityManager.createQuery("select p from Person p join fetch p.countrywhere p.login = :login").setParameter("login", Identity.instance().getUsername()).getSingleResult();
|
Now the scenario (the person is updated) works in both situations if I change country selecting from <s:selectItems> and if I don't.
Best regards,
jquery
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4030524#4030524
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4030524
More information about the jboss-user
mailing list