h:datatable created table like this
column 1 column 2
item 1 item 1
item 2 item 2
item 3 ....
But it is possible to change something and created this?
column1 item 1 item 2 item 3
column2 item 1 item 2 item 3
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You can’t use
h:datatabledirectly to access row oriented data retrieved from a datasource, in this way.You could create a new collection in your backing bean which holds the data in the format
you need (column1 item 1 item 2 item 3 ).
See also is-it-possible-to-have-multiple-rows-with-jsf-hdatatable