JSF Ajax刷新问题

In my JSF page, I have a dropdown that needs to be populated onload of the page which is set in request scope, now I have a Ajax call that refreshes a part of the page. The Ajax piece works fine but the issue is on refresh it also calls the getter for the Dropdown and returns null ( because its in request scope). To me it makes no sense to call the getter for a component that's not part of the Ajax refresh. Am I doing it correct , please suggest.

You'd have to specify which component you'd like to refresh. Depending on whether you are using jsf2 or richfaces (or any other technology), it is different, but it is often said in an attribute of the action component called render / reRender

Change the scope of managed bean to Session...