This week's book giveaway is in the Server-Side JavaScript and NodeJS forum.
We're giving away four copies of Modern JavaScript for the Impatient and have Cay Horstmann on-line!
See this thread for details.
Win a copy of Modern JavaScript for the Impatient this week in the Server-Side JavaScript and NodeJS forum!
  • 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Bear Bibeault
  • Junilu Lacar
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • salvin francis
  • Frits Walraven
Bartenders:
  • Scott Selikoff
  • Piet Souris
  • Carey Brown

updating value in bean 2 from bean 1

 
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi
I am very new in JSF.
I am facing one problem. a page that is rendered in the browser is composed of three beans.
For more understandability I have attached the Image with this post.

OVer view: We have bean3.xhtml(central page which willl update the menu label) file which has some input field that takes the
value and update the same in data base.

in bean3.xhtml we have included bean2.xhtml(the left side , is actually a navigation bar which contains the menu labels). The value which we just updated is displayed in the same browser page but bean2.xhtml is responsible to render it.

Scenario: when we update the value in bean3.xhtml and click submit. every things happens properly. value get updated in database
but its updated value is not immediately rendered.
If i visit some other page (that means i click on some other link from navigation bar.. the one in the left Bean2.xhtml)
its updated value gets reflected.

Can you please give the solution to fix this.
requirement is as soon as we click Save its value should get updated immediately.

what i am thinking is if i reload Bean 2.
or when save button is clicked and control gows inside the respective method.. i give some instruction to click the link
If my langauge was confusing
Example:
Take case of Gmail:
Suppose the navigation area where inbox ,sent, drafts are displayed is navigation area and is bean 2 and the central area is bean 3.
in bean 3 i have functionality to change navigation link value to any thing.
like I can change name of "Inbox " to "my inbox"
but on clicking save button "inbox" doesn't immediately gets changed to "my inbox".
I have to click some other link like 'Drafts' to see the updated value that is My inbox .
Please help will be highly appreciated
JSF-problem.JPG
[Thumbnail for JSF-problem.JPG]
    Bookmark Topic Watch Topic
  • New Topic