[jboss-user] [JBoss Seam] - Re: Need help updating multi-table dataTable - injecting lis
asookazian
do-not-reply at jboss.com
Fri Oct 5 17:27:19 EDT 2007
ok, cool. The updates worked for 3 different rows (6 cells total modified in JSF). I verified with t-sql select to check updates were successfull.
only thing is I am seeing the following error(s) after submit:
14:19:23,918 INFO [CustomerAction] in getCustomers(): user.getUserId() = 4461
| 14:19:24,918 INFO [CustomerAction] in destroy()
| 14:19:38,573 INFO [CustomerAction] in getCustomers(): user.getUserId() = 4461
| 14:19:38,620 INFO [CustomerAction] in submit()
| 14:19:50,588 INFO [CustomerAction] in submit()
| 14:20:13,056 ERROR [SeamPhaseListener] uncaught exception
| java.lang.NullPointerException
| at org.jboss.seam.jsf.AbstractSeamPhaseListener.afterPhase(AbstractSeamPhaseListener.java:157)
I will try to determine if your way of doing is better or not. this is the submit() code:
Iterator it = myList.iterator();
|
| while (it.hasNext()) {
| Object[] result = (Object[])it.next();
| Customers customers = (Customers)result[0];
| em.merge(customers);
| CreditCard creditCard = (CreditCard)result[1];
| em.merge(creditCard);
| }
Is it possible to do it all in one transaction?? Isn't the above doing two merges(updates) per row??
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4092197#4092197
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4092197
More information about the jboss-user
mailing list