How do I conditionally render an ?

前端 未结 12 2099
刺人心
刺人心 2020-12-28 16:55

I would like to be able to conditionally omit a footer from a PrimeFaces panel element:


    

        
12条回答
  •  旧时难觅i
    2020-12-28 17:30

    Why don't you enclose the content of the footer into a panelGroup which has the rendered attribute?

    This way:

    
        
        
            #{message}
        
        
        
    
    

    I do it in my weapp and it works, no footer is rendered.

    I don't use primefaces though, I do it with h:datatable, but I think that it must works with p:panel too.

提交回复
热议问题