I'm sure this is in the manual
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 codeI think you should read something about AuthenticatorAction class. Perhaps this is what you are looking for.