JSF - Can @PostConstruct block setter method by using an ajax call?

前端 未结 2 659
攒了一身酷
攒了一身酷 2021-01-21 18:09

I think the question is clear by the title. This is my actual bean :

@ManagedBean(name=\"selector\")
@RequestScoped
public class Selector {
    private String pr         


        
2条回答
  •  耶瑟儿~
    2021-01-21 18:41

    Sometimes I'm setProfilePage is totally absent.

    That can happen when the UICommand component is not rendered in the component tree during apply request values phase and/or update model values phase. I.e. the rendered attribute of it or one of its parents has evaluated false at that point.

    The presence of @PostConstruct should not have any influence.

提交回复
热议问题