I am not sure if my problem is conversation related, or something I'm missing.
I have two menu links on the page. Login and Add User. Login is via Seam authentication
with users in my database. Login link uses UserHome object to update user login history;
and AddUser.xhtml is bound to UserHome as well.
When I click on Login link and perform login, the page refreshes the Edit User link
generted by s:link is already appended with the UserId causing it to load record of the
logged in user; instead of giving blank Add User form.
I this it is because UserHome has already been initialised by my login process. But I am
not sure, what should be done after the login process to avoid this?
Login Link
| <s:link view="/login.xhtml" value="Login" rendered="#{not
identity.loggedIn}" propagation="none"/>
|
| Add User
| <s:link view="/user-edit.xhtml" value="User Add"
propagation="none"/>
|
| login.page.xml
| <page conversation-required="false">
| <navigation>
| ...
| </navigatioin>
| </page>
|
| user.page.xml
| <page no-conversation-view-id="/user-list.xhtml"
login-required="true">
|
| <begin-conversation join="true"/>
| <action execute="#{userHome.wire}"/>
|
| <param name="userFrom"/>
| <param name="userId" value="#{userHome.userId}"/>
|
| <navigation from-action="#{userHome.persist}">
| <end-conversation/>
| <redirect view-id="/user.xhtml"/>
| </navigation>
|
| <navigation from-action="#{userHome.update}">
| <end-conversation/>
| <redirect view-id="/user.xhtml"/>
| </navigation>
|
| <navigation from-action="#{userHome.remove}">
| <end-conversation/>
| <redirect view-id="/user-list.xhtml"/>
| </navigation>
| </page>
|
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4095077#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...