Win a copy of Penetration Testing Basics this week in the Security forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Session backing beans...

Cesar Tg.
Posts: 16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all!

I got this problem:
I am using backing beans with scope of session, and i am using the
backing bean constructor to initialize the form, everything is fine when
form is loaded the first time, but the second and the others times not,
how can i initialize the form the second time and the others, because constructor is just the firs time?

i don't want to use backings beans with scope of request because i've noticed some dificulties when coding, for instance,in every request a backing bean is created and his constructor is executed, sometimes it is not appropiate to execute constructor again because maybe i am just catching an onSelect event and i want just to fill another field in the form, and constructor executed again in every request is not appropiate, that is way i went to use session backing beans, but now i got the problem mentioned before...

any hints???

help will be appreciated...

  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic