We’re looking for a way to implement subtables in JSF 1.1. We cannot use Rich Faces due to the fact that out target server is WebSphere 6.1. I’ve tried JSTL and Tomahawk to no avail. Also, our project is using JSP’s and not facelets.
Share
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 nest
h:dataTables in each other inside ah:column. But you actually want to nest anotherh:dataTableinside a new row subsequently. There’s then no other way to create a single column and put ah:panelGridin it to represent the “main” row and a nestedh:dataTableto represent the “detail” row. You also need a good shot of CSS to get it all nicely aligned and some smart piece of JavaScript to show/hide the “detail” row.Here’s a basic kickoff example:
The
toggleDetails()function can look like (note that it takes JSF generated client ID into account):