Reply To: Intercept request

Splash Forums PrettyFaces Users Intercept request Reply To: Intercept request

#24804

Hey Søren,

yeah, sure. That’s what page actions are all about. You specify a method and each time a client hits the mapping URL this action will be invoked. Have a look at this chapter of the documentation for details:

http://ocpsoft.org/docs/prettyfaces/3.3.3/en-US/html/Configuration.html#config.actions

However, it sounds like your use case can perhaps even be implemented without PrettyFaces at all (if I understand it correctly). If you are using CDI or Spring, you could create a producer or a factory-bean for the object and simply inject the object into your bean. This way the object will be created whenever it is required.

Christian