[jboss-user] [JBoss Seam] - Re: [NEWBIE Q] redirecting to a certain page if already logg

2008-01-30 Thread [EMAIL PROTECTED]
You can use a page action for this - check if the user is logged in, if they 
are, direct them to a different page.

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4124916#4124916

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4124916
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: [NEWBIE Q] redirecting to a certain page if already logg

2008-01-30 Thread brachie
Hi,

here is a wiki-article about the topic:

http://wiki.jboss.org/wiki/Wiki.jsp?page=AutomaticLoginRedirection

It works but I have the problem, that I get an infinite loop when trying to I 
enter the application directly calling login.seam page. If I do this an enter 
my login/passwd the NotLoggenInException is thrown in a loop and the browser 
displays some kind of redirection error.

What I want is the following:
- call my login.seam page, login and be redirected to the page defined in 
pages.xml
- if I am logged in and call the login.seam page I want to be redirected to the 
page defined in pages.xml

Has anybody a working example of the pages.xml to do this? It seems to be a bit 
tricky and not trivial otherwise this kind of dummy-function in the 
wiki-article wouldn't be needed. But as mentioned even with this I don't get it 
working for 100%.

Greetings,

Alexander

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4124929#4124929

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4124929
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: [NEWBIE Q] redirecting to a certain page if already logg

2008-01-30 Thread fernando_jmt
How your pages.xml login page is configured?

Does it have login-required="false"?


like:


  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 


BTW, you can invoke to any action you want when the page is loaded and then use 
the rules in order to forward to any page you want.

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4124942#4124942

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4124942
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: [NEWBIE Q] redirecting to a certain page if already logg

2008-01-31 Thread wachtda
hello together

what is with manualy entered urls?
if the user types in: http://server/application/login.seam

no action is fired and this cause that the  doesnt apply!

any suggestions?
daniel

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4125063#4125063

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4125063
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: [NEWBIE Q] redirecting to a certain page if already logg

2008-01-31 Thread reyjexter
hey thanks for all the replies. 

anyway this is my login.page.xml (just the same as the pages.xml but 
specifically for login page. i just use this because this is generated by 
seam-gen):


  | 
  | http://jboss.com/products/seam/pages";
  |   xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
  |   xsi:schemaLocation="http://jboss.com/products/seam/pages 
http://jboss.com/products/seam/pages-2.0.xsd";
  |   login-required="false" action="#{userAuthenticator.checkLogin}">
  |   
  | 
  | 
  | 
  | 
  | 
  |   
  |   
  | 
  | 
  |   
  | 
  | 
  | 
  | 
  | 
  | 
  | 

i agree with wachtda that the page action doesnt fire if you try to access the 
login.seam directly. when i use the base url instead, i am redirected to 
login.seam and the page action for login page is executed.


rey


View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4125153#4125153

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4125153
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: [NEWBIE Q] redirecting to a certain page if already logg

2008-01-31 Thread fernando_jmt
Try the following change:


  | 
  | 
  | http://jboss.com/products/seam/pages";
  |   xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
  |   xsi:schemaLocation="http://jboss.com/products/seam/pages 
http://jboss.com/products/seam/pages-2.0.xsd";
  |   login-required="false" action="#{userAuthenticator.checkLogin}">
  |   
  |   
  |
  | 
  |
  | 
  |  
  |   
  | 
  | 
  |   
  | 
  | 
  | 
  | 
  | 
  | 
  |  
  | 

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4125184#4125184

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4125184
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user