File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

redirect & parameter passing

 
Jan Hruby
Greenhorn
Posts: 4
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

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


PersonList.personDetail()


navigation rules


 
William Caicedo
Greenhorn
Posts: 1
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Well, you could use redirection directly on your code and pass the parameters via querystring like this:


Regards,

William.
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic