Hi, I have a problem whit my page in jsf.
I have this situation.
I have radiobuttons on my jsf page
The problem is, when I clic in some radiobutton, the page "refresh" with the new value of my radiobutton. but the problem is, the page not maintain the same position, only reload and put the page at the top
PD: sorry for my english.
It's possible to maintain the position of my page and refresh??
Bajrang Asthana wrote:
Personally I recommend to you, use Ajax call and render the part of page which is needed.
The technical term for this is "partial page update".
Normally when you submit a form, a request is made to the server, the server processes the request and a new page is returned to be displayed. And, as you have noted, the page display changes in potentially annoying ways.
If you use AJAX, you can make a partial page update. What actually happens is that an internal submit request/response cycle is made, but instead of displaying the returned response as a new page in the client, the response data comes back to the AJAX processing code, which then uses it to adjust the current page display (DOM). You will often refine this with a partial form submit, since the entire request will be rejected (and the page won't update) if any control on the submitted form has an invalid value in it.
An IDE is no substitute for an Intelligent Developer.