I read that jsf does not allow get methods on form. I have an authentication process on the website. Only authorised user can visit.
If some one book marks that page, and come back later then they have to pass through authorisation login.
How I carry the information of a page, so after authorisation it lands into right page instead of home page using JSF?
How you can make bookmark available for JSF pages.
THANKS.
Will Lee
Ranch Hand
Joined: Mar 16, 2005
Posts: 58
posted
0
I'm facing similar problem: In the email I'll include a link to JSF. How to pass the parameter in the backbean and how to invoke the method in the bean (after user log in)?
For the first question, I found out in JSF wiki but didn't try yet For the 2nd one, the wiki suggest Shale remoting but no document in that web site.
hi frenz..... i do have generic idea pls do work it out whether it is correct or wrong....
we have controller (ie here class which checks the suthentication issue) in the class with use of HttpServletRequest Object getRequestURL() ... u can get the requested url ...( ie bookmarked url) then u do that logic...fwd to that same page which he requested...
In JSF with the help of facesContext i think we can get the servlet intance with external.... i didnt remember the exact mtd ... Hope this helps... if i am wrong ...pls do post
Check out project PrettyFaces. It does a lot of this and makes bookmark pages possible for JSF. It uses the RequestDispatcher to get a utilize faces servlet..
Lincoln Baxter, III | [url]http://ocpsoft.com/[/url] | Creator of: PrettyFaces - Bookmarks, Navigation, and Dynamic Parameters for JSF