• Post Reply Bookmark Topic Watch Topic
  • New Topic

can't back to previous page in JSF  RSS feed

 
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
 
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.
 
Bartender
Posts: 2856
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.
 
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
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!