0

I am using JSF 2.2 and I have two facelets pages that use the same managed bean. And I want to perform different actions on @PostConstruct method depending on the page.

Is there a way to do the following:

    @PostConstruct
    public void init()
    {
        if(argument.equals("page1")
        {
            ...
        }
        else if(argument.equals("page2")
        {
            ...
        }
    }
Aliuk
  • 1,249
  • 2
  • 17
  • 32

0 Answers0