Win a copy of Succeeding with AI this week in the Artificial Intelligence and Machine Learning forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Liutauras Vilda
  • Junilu Lacar
Sheriffs:
  • Tim Cooke
  • Jeanne Boyarsky
  • Knute Snortum
Saloon Keepers:
  • Stephan van Hulst
  • Tim Moores
  • Tim Holloway
  • Carey Brown
  • Piet Souris
Bartenders:
  • salvin francis
  • fred rosenberger
  • Frits Walraven

JSF bookmark

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Ranch Hand
Posts: 58
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Ranch Hand
Posts: 225
IBM DB2 Eclipse IDE Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Greenhorn
Posts: 24
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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..
 
Those are the largest trousers in the world! Especially when next to this ad:
Two software engineers solve most of the world's problems in one K&R sized book
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
    Bookmark Topic Watch Topic
  • New Topic