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
_______________________________________________
jboss-user mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/jboss-user