Thats just a validation error with JBoss Tools right? So ignore the warning.
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4121855#4121855
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4121855
__
Thanks.
Quick question Pete, where can I find how to do a SMPC when deploying in an
ear? Is there a workaround to the below JIRA issue?
http://jira.jboss.org/jira/browse/JBIDE-1409?decorator=printable
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4121849#41
I find that DataModelSelection stuff really flakey. You could just use
tradional JEE development methods for this. This code should work in any view.
Eg: In your view;
Then in your action;
| public void remove(Long id){
|User removeUser = (User) em.find(User.class, id);
|if (re
Phew, long post.
To keep entites from being detached use an SMPC with a long running
conversation.
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4121548#4121548
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4121548
__
It seems to work just as well by using the conversation scope, with less code
and, of course, a smaller footprint.
| package org.domain.myProject.session;
|
| import static javax.persistence.PersistenceContextType.EXTENDED;
|
| import java.util.List;
|
| import javax.ejb.Remove;
Here's how I want it to work:
| * Save users to a database on the entry page
| * On navigation to the list page, pull users from the database into a list
in the scope and display them
| * Do not call the database to update the list since it's in the scope
| * When leaving the page, remove
If I put the SFSB into a long running conversation, then what would be the
useage of the PAGE scope?
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4121286#4121286
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4121286
Tried using long-running conversations? Otherwise, you could just merge() the
entity before deleting.
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4121173#4121173
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4121173