[jboss-user] [JBoss Seam] - Re: Security: Login twice after logout

2008-02-01 Thread baspet
My app uses home.page.xml with login-required="true". So, when identity.logout executes, control tries to render home.xhtml (that's why i don't use view on s:link). But, since home.xhtml is login-required and logout already called, seam correctly drives to login.xhtml. Of course, you have to ca

[jboss-user] [JBoss Seam] - Re: Security: Login twice after logout

2008-02-01 Thread brombie
"baspet" wrote : Does home.page.xml has login-required="true"? | | V. | There's no home.page.xml. The default Seam web template in eclipse or seam-gen doesn't generate that. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4125493#4125493 Reply to t

[jboss-user] [JBoss Seam] - Re: Security: Login twice after logout

2008-02-01 Thread thejavafreak
"brombie" wrote : I've tried commenting out the notLoggedIn and postAuthenticate events in components.xml but it didn't solve the problems. It wouldn't be a good solution anyway, since I do need those events to be handled as configured. | Yup I've tried that too and it didn't work. I've al

[jboss-user] [JBoss Seam] - Re: Security: Login twice after logout

2008-02-01 Thread baspet
Does home.page.xml has login-required="true"? V. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4125460#4125460 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4125460 ___ jbo

[jboss-user] [JBoss Seam] - Re: Security: Login twice after logout

2008-02-01 Thread brombie
"baspet" wrote : Try to remove view from s:link. It works for me.. | | V. | Thanks for the response, baspet, but removing the view from the logout link will take you to the home.xhtml instead of to login.xhtml, which put us back to square one. If I click the login link from the home pa

[jboss-user] [JBoss Seam] - Re: Security: Login twice after logout

2008-02-01 Thread baspet
Try to remove view from s:link. It works for me.. V. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4125445#4125445 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4125445 ___

[jboss-user] [JBoss Seam] - Re: Security: Login twice after logout

2008-02-01 Thread brombie
I'm having the same problem here. This problem is easy to duplicate if you have eclipse with JBoss tools. Just create a new Seam Web Project which will give you the login and home page. The logout link in the generated menu.xhtml is: If you change the view to /login.xhtml like this: the

[jboss-user] [JBoss Seam] - Re: Security: Login twice after logout

2008-01-30 Thread thejavafreak
"baspet" wrote : i had the some problem. Solved it, putting comments to: | a) event type="org.jboss.seam.notLoggedIn" | b) event type="org.jboss.seam.postAuthenticate" | in components.xml | | V. | So that's what cause the problem. Thanks, I'm going to try it out. :) View the origina

[jboss-user] [JBoss Seam] - Re: Security: Login twice after logout

2008-01-30 Thread baspet
i had the some problem. Solved it, putting comments to: a) event type="org.jboss.seam.notLoggedIn" b) event type="org.jboss.seam.postAuthenticate" in components.xml V. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4124689#4124689 Reply to the post : http://

[jboss-user] [JBoss Seam] - Re: Security: Login twice after logout

2008-01-29 Thread thejavafreak
"[EMAIL PROTECTED]" wrote : I've never seen anything like this happen. Can you post your code? The link for logging out: | When I click this link and successfully logged out, I must log in twice. And this occurs everytime. login.xhtml | | | |

[jboss-user] [JBoss Seam] - Re: Security: Login twice after logout

2008-01-29 Thread thejavafreak
"amitev" wrote : I've met this problem before. I think it's caused because the session is invalidated after the new view is rendered. You can't make a post back because jsf can't find the serialized view to restore. | | The solution is to use redirect in your link/button. Can you please sh

[jboss-user] [JBoss Seam] - Re: Security: Login twice after logout

2008-01-29 Thread amitev
I've met this problem before. I think it's caused because the session is invalidated after the new view is rendered. You can't make a post back because jsf can't find the serialized view to restore. The solution is to use redirect in your link/button. View the original post : http://www.jboss

[jboss-user] [JBoss Seam] - Re: Security: Login twice after logout

2008-01-29 Thread [EMAIL PROTECTED]
I've never seen anything like this happen. Can you post your code? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4124647#4124647 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4124647 ___