Nested datatable in JSF 2.0

后端 未结 2 1836
春和景丽
春和景丽 2021-01-13 18:36

I am trying to fetch the questions and the associated answers. I am able to get the questions fine but the nested datatable does not even recognize the properties each answe

2条回答
  •  生来不讨喜
    2021-01-13 18:48

    You need to put columns inside a .

    
        
            
            

    (note that I changed the rendered and the var attributes to be a bit more self-documenting, you might want to rename questionTitle, questionBody and answer to title, body and body respectively as well so that you don't keep duplicating the meaning)

提交回复
热议问题