ui:repeat JSF 2.0 cannot render iterate p:row primefaces

后端 未结 2 738
走了就别回头了
走了就别回头了 2020-12-19 18:41

I got a problem here, my system config was Mojarra 2.1.7, Primefaces 3.2 and using Glassfish 3.1+.

before this, i got my code well rendered using this codes:

2条回答
  •  眼角桃花
    2020-12-19 18:55

    As to the concrete problem, the is a view render time tag. Thus, it's physically present in the JSF component tree and generates its HTML output as many times as it needs to iterate over the value.

    However, the expects physically multiple or children, not a single with therein a single . In other words, they needs to be prepared during the view build time instead of the view render time.

    The JSTL is a view build time tag. It will generate physically multiple components into the JSF component tree and hence the will find solely children.

    
        
            
                
                
                
                
            
        
    
    

    Note: this breaks view scoped beans in Mojarra versions older than 2.1.18. If you can't upgrade, then consider a instead, as you already found out yourself.

    See also:

    • JSTL in JSF2 Facelets... makes sense?

提交回复
热议问题