p:commandButton rendered property not working after ajax update (Primefaces 3.5)

前端 未结 2 402
走了就别回头了
走了就别回头了 2021-02-08 13:38

I reviewed my code lot of times and didnt find questions about it.

I have a problem with p:commandButton rendered property. The p:commandButton is allways displayed even

2条回答
  •  借酒劲吻你
    2021-02-08 14:21

    You can only ajax-update a component which is always rendered (i.e. when it does not have a rendered attribute). JSF ajax engine does not support addition/removal of a HTML element. It only supports the change of a HTML element.

    So, wrap it in a component which is always rendered and ajax-update it instead.

    
        
        
    
    
    
        
    
    

    See also:

    • Why do I need to nest a component with rendered="#{some}" in another component when I want to ajax-update it?

提交回复
热议问题