How do I conditionally render an ?

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

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


    

        
12条回答
  •  灰色年华
    2020-12-28 17:27

    You could declare a ui:param and let the template check the param while renderring.

    The facet in the template could then be declared as:

    
         #{message}
    
    

    Any page can then declare this param

    
    

    and set the appropriate rule for the param. For any page that does not declare the param, the footer will be displayed.

提交回复
热议问题