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;
<s:button action="#{userEdit.remove(user.id)}" value="S. Delete"/>

Then in your action;

  | public void remove(Long id){
  |    User removeUser = (User) em.find(User.class, id);
  |    if (removeUser == null) {
  |       // TODO: Already Deleted!! Someone beat you to it
  |    } else {
  |       log.info("Deleting " +removeUser.getName());  
  |       em.remove(removeUser);
  |       users.remove(removeUser );
  |    }
  | }
  | 

Forgive any typos since I didn't test this code of course.

Good Luck!


View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4121698#4121698

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4121698
_______________________________________________
jboss-user mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/jboss-user

Reply via email to