Apr 22, 2017 4:05 AM
33 Posts

@PostConstruct annotation usage

  • Category: Managed Beans in NSF
  • Platform: Windows
  • Release: 9.0.1
  • Role: Developer
  • Tags:
  • Replies: 2

I am trying to execute a method after the bean is fully constructed.

I have found out that in JSF one can mark a method with @PostConstruct annotation and this method is automatically called once the bean is constructed. Although I am able to use this annotation in the code the method seems to be never executed.

This topic is here in order to confirm that it is not supported in XPages and that I am just not doing anything wrong?

Thanks for the feedback.

Apr 24, 2017 9:03 AM
122 Posts
@PostConstruct

Which version of JSF is that available in? XPages is based on a heavily customised version of JSF 1.1 (including some elements ported back from JSF 2.0, like Custom Controls).

Apr 27, 2017 2:04 AM
33 Posts
JSF 2.0 or even JSF 1.2

Paul, thank you for the answer. That explains my troubles.

Hopefully it will be added soon.