Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

page not binding to bean  RSS feed

 
Gogia Nitin
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I am trying to open JSF pages in different tabs (YUI). The problem comes in when SAME PAGE is loaded in 2 different tabs. If a save is executed on the page it only happens in one of the tabs. The other tab does not executes the save method.
I will appreciate if someone can provide me the right direction to fix this problem.
 
Tim Holloway
Bartender
Posts: 18661
71
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In the world of HTTP (whether JSF or otherwise), what happens in one tab or browser window has no effect on any other tab or window. Each is in effect, a completely separate program.

HTTP cannot support true MVC operation. A server cannot post back unsolicited changes to the client. Only when the client requests data can any server-side changes be reflected back to the client. Since each tab is a separate client, each tab must request the updated data explicitly.

As confusing as many have found this, AJAX makes it even more confusing, because AJAX "appears" to break this limitation. But it doesn't. AJAX gets its updated data because client-side JavaScript is making asynchronous HTTP requests to the server (which is where the first "A" in AJAX comes from).
 
Gogia Nitin
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Tim,
Each tab is being saved separately. The problem is pressing save in one tab updates the contents of the latest view being restored. Basically i am unable to open multiple instances of same page in different tabs.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!