How to stop recursive composite component from including itself recursively

后端 未结 2 1087
没有蜡笔的小新
没有蜡笔的小新 2021-01-16 03:36

Is it possible to have a JSF component that has ui:repeat and inside the repeat call the same component? It\'s because I\'m building tree of question:



        
2条回答
  •  生来不讨喜
    2021-01-16 03:53

    Based on the answer of BalusC I created a solution like this.

    
        [..]
        
    
    
    
            
                
    
                        
    
                   
            
    
    
    

    The level attribute is used at build time to avoid endless recursion and the renered attribute of the a4j:repeat (or ui:repeat in your case) will be evaluated at render time.

提交回复
热议问题