Conditionally render element's attribute in a composite component

后端 未结 3 1258
[愿得一人]
[愿得一人] 2021-01-02 17:52

I have the following composite component:




        
3条回答
  •  陌清茗
    陌清茗 (楼主)
    2021-01-02 18:06

    You can use JSTL to build the view conditionally and to specify an attribute separately:

    
        
            
        
    
    

    An alternative is to specify a default for the composite component attribute:

    
    

提交回复
热议问题