-
1. Re: login with jpa_identity-store doesn't leave the page
tony.herstell1 Sep 10, 2009 5:43 AM (in response to tony.herstell1)Can't use the event anyhow as would interfere with a login re-direct.
Seems to be an oversight?
-
2. Re: login with jpa_identity-store doesn't leave the page
coenos Sep 10, 2009 7:29 PM (in response to tony.herstell1)Have you tried a navigation case?
-
3. Re: login with jpa_identity-store doesn't leave the page
tony.herstell1 Sep 10, 2009 8:46 PM (in response to tony.herstell1)
Coen Damen wrote on Sep 10, 2009 19:29:
Have you tried a navigation case?Hummm.. was trying to use seam navigation rules but your comment does make me think.. I will look into what Seam returns after a login has been completed other than an event.
The point is that you are not in control when Seam does the login for you. You are not in a method at all.
Its all automagic.
I suppose I can put some nasty code on the page itself that says if the identity says I am now logged in do some sort of redirect.
All very hacky!
-
4. Re: login with jpa_identity-store doesn't leave the page
tony.herstell1 Sep 11, 2009 4:12 AM (in response to tony.herstell1)Coen,
You were right...
<page view-id="/pages/user/login.xhtml" login-required="false" scheme="https"> <description>Logging in of new User</description> <navigation> <rule if-outcome="loggedIn"> <redirect view-id="/home.xhtml" /> </rule> </navigation> </page>
Took some googling to find that identity.login returns
loggedIn
.I probably should have looked at the code instead of the manaul.
Perhaps it COULD go in the manual (section 15.3.3.)