Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JSF Backing bean code

 
S Majumder
Ranch Hand
Posts: 349
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi every body ,

I am creating one form , on that form I have created six tabs.On my entire application I have one backing bean .I have taken that backing bean in a session scope .

My question :

Can I create six different backing bean for each tab ?

A short example :



my faces-config.xml is :



my jsf is somthing like that :




It is working fine for my application.For code maintain purpose I just separate each tabs actions into different beans.

Is it the proper way ? s this the proper structure ?
or is there any different way to write code ?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic