Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

can't back to previous page in JSF

 
Ahmed Battah
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have a portlet that has 2 pages. You fill out a form, confirm that
data, etc. When I get to my second page using <h:commandLink>, and I
try to go back to the first page by clicking "back", it always takes
me to my second page
 
Akbar Basha R
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I think you haven't defined the faces-config.xml properly. Here is a sample faces-config.xml



In the command link, make sure the action method is returning back. In this way, the page will move to first page on the link action.
 
Amit Ghorpade
Bartender
Posts: 2854
10
Fedora Firefox Browser Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"Akbar Basha R " please check your private messages for an important administrative matter. You can check them by clicking the My Private Messages link above.
 
Bauke Scholtz
Ranch Hand
Posts: 2458
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Akbar Basha R wrote:I think you haven't defined the faces-config.xml properly.
I think he was talking about the browser's back button.
 
Ahmed Battah
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
exactly as "Bauke" said,
i mean browser back button
 
Ahmed Battah
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
exactly as "Bauke" said,
i mean browser back button
 
Don't get me started about those stupid light bulbs.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic