• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • Ron McLeod
  • Junilu Lacar
  • Liutauras Vilda
Sheriffs:
  • Paul Clapham
  • Jeanne Boyarsky
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Piet Souris
  • Carey Brown
Bartenders:
  • Jesse Duncan
  • Frits Walraven
  • Mikalai Zaikin

BackingBean problem

 
Ranch Hand
Posts: 349
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 598
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thnaks for your help.

I have solved that problem
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic