[jboss-user] [JBoss Seam] - Re: Facelets error or Seam error?
bsmithjj
do-not-reply at jboss.com
Tue Jul 11 13:01:43 EDT 2006
| @Name("linkEditor")
| @Scope(ScopeType.CONVERSATION)
| public class LinkEditor implements Serializable {
|
| public String deleteLink() {
| log.info("deleteLink() - linkId="+linkId);
| if (linkId != null) {
| Transaction tx = appssoDB.beginTransaction();
| final Link l = getLink(linkId,user.getId());
| final User u = (User)appssoDB.get(User.class,user.getId());
| if (l != null) {
| u.removeLink(l);
| appssoDB.delete(l);
| }
| tx.commit();
| appssoDB.refresh(u);
| user = u;
| return "success";
| } else {
| facesMessages.add("Unable to delete requested link.");
| return null;
| }
| }
|
| ...
| }
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3957076#3957076
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3957076
More information about the jboss-user
mailing list