Win a copy of Head First Android this week in the Android 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • Rob Spoor
  • Bear Bibeault
Saloon Keepers:
  • Jesse Silverman
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • Al Hobbs
  • salvin francis

updating value in bean 2 from bean 1

 
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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]
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic