Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

jsf page navigation help needed  RSS feed

 
Kumar Gaurav
Ranch Hand
Posts: 108
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I have a page which ic having link to navigate to other page. On the first page i m entering certain data that is getting saved to Database. Now when i navigate to some other page clicking on any of the link i need to avail the data to that page.

How can it be accompolished. It is very urgent, any help will be highly
appreciable.
 
Sanjay Chavan
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Its always better to give details of issue ...
Anyway.. as per my understanding following is a solution :
Your first page which is saving values to database should use a bean.
For another page use separate bean (other than first)which will fetch latest data from DB.
You can do the same thing using different action methods in a single bean.
 
Himanshu Gupta
Ranch Hand
Posts: 598
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Putting the required data into session will also do.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!