0 Replies Latest reply on Jan 22, 2008 7:51 PM by hb1234

    request scope & post-back

    hb1234

      Hello, I have a jsf page (jsf1.jsp) which contains a DataTable. I have a backing bean (bb.java) for my jsf page. I have a method bb.getData() which returns a list that is eventually displayed in my datatable. I have set the bb scope to request. Everything works fine.

      However, unless I’m mistaken every time the page makes a round trip the method bb.getData() is invoked. I’d like to make sure that the bb.getData gets called only when the page is initially created. In other words I don’t want to call bb.getData on post-back.

      I can achieve this by putting bb in the session. But I don’t want to do that.
      Is there a way I can call bb.getData only when it is not a post-back and keep bb in the request?

      Thanks