The moose likes JSF and the fly likes JSF bookmark Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSF
Bookmark "JSF bookmark" Watch "JSF bookmark" New topic

JSF bookmark

Sunita Dilwali

Joined: Jun 02, 2006
Posts: 1
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.

Will Lee
Ranch Hand

Joined: Mar 16, 2005
Posts: 58
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.

Anyone has better solution? Thanks

Ganesh Gowtham
Ranch Hand

Joined: Mar 30, 2005
Posts: 225

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

Thanks, Ganesh Gowtham
Lincoln Baxter

Joined: Aug 25, 2008
Posts: 24
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][/url] | Creator of: PrettyFaces - Bookmarks, Navigation, and Dynamic Parameters for JSF
I agree. Here's the link:
subject: JSF bookmark
It's not a secret anymore!