JSF: bean scope; session vs request

后端 未结 2 1216
终归单人心
终归单人心 2020-12-30 15:09

I have a managed bean called UserSearchHandler, it has a doSearch method that populates UserSearchHandler.searchResults which are disp

2条回答
  •  失恋的感觉
    2020-12-30 15:19

    I have a couple of ideas. If you're using a in your navigation you can try taking that out. Doing so would mean the browser will not make a new HTTP request when it renders the second window. It is the new HTTP request which clears the request scoped beans by. If that is not an option, you may be able to pass a parameter in your link such as a record id, which could allow you to pull data from your data source matching that id.

提交回复
热议问题