How not to set an attribute of a component inside a composite component if it is empty?

后端 未结 1 1866
悲哀的现实
悲哀的现实 2021-01-15 13:17

I have a h:graphicImage in a composite component like this:


    

        
1条回答
  •  慢半拍i
    慢半拍i (楼主)
    2021-01-15 14:00

    You can conditionally add attributes via .

    
        
        
    
    

    See also:

    • JSTL in JSF2 Facelets... makes sense?

    0 讨论(0)
提交回复
热议问题