Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Stop JSF Redraw  RSS feed

 
Sarah Kwok
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

Is there anyway to stop JSF redraw the screen? I have some buttons that send data to backend and don't need to update the GUI at all.



Thanks,
Sarah
 
Eric Pascarello
author
Rancher
Posts: 15385
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Only way around that would be to look into the XMLHttpRequest Object...

Eric
 
Gregg Bolinger
Ranch Hand
Posts: 15304
6
Chrome IntelliJ IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The screen "redraw" as you call it is actually a page refresh. Everytime an event occurs within JSF a request is sent to the server, which sends back a response (basic Http stuff) and the page gets refreshed or, redrawn.

Like Eric said XMLHttpRequest object is the only way to drive dynamic data without refreshing the web page.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!