0

Currently i am working on a JSF (ICEfaces ) project. I am having a menu where the menu data comes from the database. I mean label and url comes from the database. I am executing the query and writing a logic for the menu. Up to that JSF is good.

Suppose i clicked on a link of menu. I got a page. In that page I am having 3 buttons. Add, Update & Delete buttons. For the add navigation i used

<ice:outputLink/>

For the remaining i used

<ice:commandLink/>

I can navigate from one page to another page with the above. Problem i am getting is when returning to the previous page, page is not going. After googling what i noticed is page navigation is by default forwards.

When navigation is forward, why the previous page is not coming....

Please help,

Thanks vipul

Donato Szilagyi
  • 4,279
  • 4
  • 36
  • 53
Vipul
  • 113
  • 1
  • 10

1 Answers1

0

I'm not totally understanding your problem, but i'm thinking that what you may be looking for is the have the url change in the browser when you click a link.

To do that, just add "?faces-redirect=true" to your link.

example:

<ice:outputLink value="mylink?faces-redirect=true" />

A side note, why do you want to use Icefaces when it is a complete rip off of primefaces? Why not just use the original code (primefaces)? See this link for explanation - http://blog.primefaces.org/?p=1692.

Catfish
  • 18,876
  • 54
  • 209
  • 353