Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

BackingBean problem  RSS feed

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

I have a simple userID , passWord fields on my JSF application.If user authenticated then only user can see the next page.On the login page I am useing one loingAuthenticationBean .The loingAuthenticationBean is in session scope. On that bean I can take the userID and as well as the password also.

After authentication I am showing a simple form.Authenticated user can fill data on that form . For this form am using formBackingBean .The formBackingBean is also in session scope.After filling the form user will press the Enter button & data will save in the database.But how could I get the userID field ? Because the userID is in a different backingBean .I have to save the userID also when user save those data.

Is there any way out to take data from diffrerent backingBean's data ?


regards,
S
 
Himanshu Gupta
Ranch Hand
Posts: 598
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Your loingAuthenticationBean is in session scope. You can use this bean to get the user ID.
 
S Majumder
Ranch Hand
Posts: 349
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thnaks for your help.

I have solved that problem
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!