Thanks for your reply.
That was the "register" bean and yes I have now as you are right it didnt need
it.
However it still fails on the below thread (create) which is conversational.
However, as you can see above, getting rid of partial submit on the fields has
got me round the problem (which may be my config for using icefaces with Seam).
| @Begin
| public String startCreate() {
| /*
| * We get here from the Menu option Users->Create.
| * Simply display the screen.
| */
| log.info(">startCreate");
| log.info("Starting Registration conversation.");
| if (conversation != null) {
| log.info("Conversation. (" + conversation.getId() +
")");
| }
| log.info("<startCreate");
| return "userCreate";
| }
|
| public String checkDetails() {
| log.info(">checkDetails");
| log.info("processing User Details " + user.toString());
|
| log.info("checking if User already exists for username " +
user.getUsername());
| List matchedUsers = em.createQuery(
| "from User u where u.username =
:username").setParameter(
| "username", user.getUsername()).getResultList();
| boolean usernameExists = (matchedUsers.size() != 0);
| log.info(" exists =>" + usernameExists);
|
| if (usernameExists) {
| //
facesMessages.addFromResourceBundle(FacesMessage.SEVERITY_WARN,
| // "username", "user_create_username_exists"); -- DOES
NOT WORK IN SEAM
| facesMessages.addFromResourceBundle("submitAttempt",
"user_create_username_exists");
| }
| log.info("<checkDetails");
| return "userCreateConfirm";
| }
|
| public String revise() {
| log.info(">revise");
| log.info("<revise");
| return "userCreate";
| }
|
| @End
| public String create() {
| log.info(">create");
| user.setCreationDate(new Date());
| em.persist(user);
| facesMessages.addFromResourceBundle("user_create_successful");
| log.info("<create");
| return "success";
| }
|
| @End
| public String cancel() {
| log.info(">cancel");
| log.info("<cancel");
| return "mainMenu";
| }
|
| @Remove
| @Destroy
| public void destroy() {
| log.info(">destory");
| log.info("<destory");
| }
| }
|
|
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4002498#4002498
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4002498
_______________________________________________
jboss-user mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/jboss-user