I have two different pages personList and personDetail and two managed beans PersonList and PersonDetail. I have a problem to pass a personId parameter to PersonDetail bean when moving from personList to personDetail page. It works fine when I don't use <redirect/> tag in my faces-config.xml file. I suppose that the problem is that first request is created by clicking on commandLink and usage of <redirect/> tag causes creating of new request but I need to use redirect otherwise url don't change. Any ideas how to solve this problem???
I can't use outputLink for passing parameters because there are two different detail pages and I resolve where to go in PersonList.personDetail method
personList.jspx code example
posted 6 years ago
Well, you could use redirection directly on your code and pass the parameters via querystring like this: