2 Replies Latest reply on Oct 22, 2008 11:00 AM by Javier Carazo

    force login

    Sascha Janz Master

      i use an application generated by seam gen.


      how can i force the user to login ? so that my pages only can be reached when the user is logged in.


      how can i do a login by java code?


        • 1. Re: force login
          Nicklas Karlsson Master

          I'm sure this is in the manual

          • 2. Re: force login
            Javier Carazo Newbie

            Sascha janz wrote on Oct 22, 2008 08:31:


            i use an application generated by seam gen.

            how can i force the user to login ? so that my pages only can be reached when the user is logged in.


            Nicklas is right, this is basic and is in the manual, all the tutorials and all the books I've seen.


            In your pages.xml you need to have something like this:


            <page view-id="/yourpage.xhtml" login-required="true"> </page>



            I'm not sure what do you want to say with login by java code I think you should read something about AuthenticatorAction class. Perhaps this is what you are looking for.