Win a copy of The Way of the Web Tester: A Beginner's Guide to Automating Tests this week in the Testing forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic


Nenad iceDice
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

I have two jsf pages (page1 and page2) and appropriate backing beans (bean1 and bean2).
Both beans are request scoped.
I need to access properties of bean2 in bean1 but i need bean2 to be instantiated at application start.
I want to use instantiated bean2 when user go to page1 but i don't want to set application scope to bean2.

For example let say we have two jsf pages, one displaying list of cities and other displaying list of persons.
When user navigates to page to add new person i need to show list of cities to choose from for person city.
If we go to list of all cities first and then get back to add new person everything works fine because cities backing bean is instantiated.
But if we go to add new user first cities backing bean is not instantiated.

Is there any way to accomplish this?

Best regards.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic