• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Faces page as an index page

 
Hussein Baghdadi
clojure forum advocate
Bartender
Posts: 3479
Clojure Mac Objective C
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi.
My application main page is JSF based.
This page is secured with JEE form authentication.
A snippet from main.faces

Now, I entered the URL in the browser:
http://host/app/main.faces
I got the authentication form, I filled it.
The container forwards the request to main.faces but nothing is displayed.
I created a phase listener to run on RESTORE_VIEW event, this listener gets the role from the request
and saves it in one of the bean properties.
And yes, the bean is session scoped.
How to overcome this?
Thanks.
 
Tim Holloway
Saloon Keeper
Pie
Posts: 17990
47
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
My experience with JSF is that the "hello page" mechanism doesn't carry sufficient context to invoke a JSF page.

I suppose if I was really ambitious, I'd work out all the details, but in practice, what I do is make my hello page a plain JSP and have it do a redirect to the JSF page. This works even with the extra context rewiring that you get when using a form-based container authentication.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic