• Post Reply Bookmark Topic Watch Topic
  • New Topic

Pass data from managed-bean to JSF

 
Imran Vohra
Ranch Hand
Posts: 77
Chrome Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
My code is really simple and its working fine until I add my new requirement

Simple code exists
  • 1
  • Managed bean with username and password variable and their getters and setters.
  • 2
  • JSF Page with 2 text fields one associated with username and one associated with password

    Its working fine whatever values I enter in browser I can get it from bean
    Now when I am trying to set Username in managed bean method it is not reflected on the screen in text field.
    Am I missing something?
    Do I have to config anything for that?
     
    Tokunbo Oke
    Ranch Hand
    Posts: 57
    • Mark post as helpful
    • send pies
    • Quote
    • Report post to moderator
    You did not show your source code. Nevertheless, I suggest that you look into COMPONENT BINDING.
     
    • Post Reply Bookmark Topic Watch Topic
    • New Topic
    Boost this thread!