aspose file tools
The moose likes JSF and the fly likes Pass data from managed-bean to JSF Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » JSF
Reply Bookmark "Pass data from managed-bean to JSF" Watch "Pass data from managed-bean to JSF" New topic
Author

Pass data from managed-bean to JSF

Imran Vohra
Ranch Hand

Joined: Dec 12, 2005
Posts: 77

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?

    Regards
    Imran
    Tokunbo Oke
    Ranch Hand

    Joined: Sep 09, 2003
    Posts: 57
    You did not show your source code. Nevertheless, I suggest that you look into COMPONENT BINDING.
     
    I agree. Here's the link: http://zeroturnaround.com/jrebel/download
     
    subject: Pass data from managed-bean to JSF
     
    Similar Threads
    JSF Page Navigation Problem
    managing Faces-config in jSF ...please explain.
    Injecting Beans as Parameters (Injected Bean reference is null)
    newbie null reference exception
    Displaying simple read-only tabular data