• Post Reply Bookmark Topic Watch Topic
  • New Topic

Different Managed Bean instances

 
Alex Grilo
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I have a JSF application and here is my cenario: there's a button which execute an action in a bean and then through the navigation rules, goes to another view-id which also uses this bean. This bean's scope is request, but I'd like to use the attributes that were set at the button's action, but I can't be. Which is the best way to get these values?

Thanks

Alex
 
Teena George
Ranch Hand
Posts: 82
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Change the bean scope to session.
 
Gravity is a harsh mistress. But this tiny ad is pretty easy to deal with:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!