[jboss-user] [JBoss Seam] - Re: a problem with jBpm in Seam

petemuir do-not-reply at jboss.com
Mon Oct 30 04:44:23 EST 2006


Looks to me like you want to split out starting the pageflow and registering the user into two seperate methods in the action e.g.

public void register() {
  |    try {
  |       if(isAlreadyExists()) {
  |          userNotExists = false;
  |          em.persist(user);
  |          logger.info("user #{user.username} registered.");
  |          //return "/pages/registered.jsp";
  |       }else {
  |          logger.info("user #{user.username} already registered.");
  |          userNotExists = true;
  |       }
  |    } catch (Exception e) {
  |       e.printStackTrace();
  |    }
  | }
  | 
  | @Create
  | @Begin(join=true,pageflow="SeamPracticePageFlow")
  | public void startPageFlow() {
  | } (make sure to declare startPageFlow on the interface)

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

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3981690



More information about the jboss-user mailing list