Is there an annotaion like @PostConstruct for methods which should be called after restoring the view? I want to refresh data once per request. Any ideas how to do this?
Is there an annotaion like @PostConstruct for methods which should be called after restoring
Share
Not an annotation, but you can use
<f:event type="preRenderView">for this.with
I however wonder if that bean can’t better be placed in the request scope as it seems to hold request scoped data as well. Perhaps you need to split the bean into two beans in different scopes, one of them being request scope which holds the data you need to refresh on every request.