Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

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.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 843535
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T06:08:39+00:00 2026-05-15T06:08:39+00:00

We’re looking for a way to implement subtables in JSF 1.1. We cannot use

  • 0

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.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-15T06:08:40+00:00Added an answer on May 15, 2026 at 6:08 am

    You can nest h:dataTables in each other inside a h:column. But you actually want to nest another h:dataTable inside a new row subsequently. There’s then no other way to create a single column and put a h:panelGrid in it to represent the “main” row and a nested h:dataTable to 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:

    <h:dataTable value="#{bean.orders}" var="order">
        <h:column>
            <h:panelGrid columns="3">
                <h:graphicImage id="expand" value="expand.gif" onclick="toggleDetails(this);" />
                <h:outputText value="#{order.id}" />
                <h:outputText value="#{order.name}" />
            </h:panelGrid>
            <h:dataTable id="details" value="#{order.details}" var="detail" style="display: none;">
                <h:column><h:outputText value="#{detail.date}" /></h:column>
                <h:column><h:outputText value="#{detail.description}" /></h:column>
                <h:column><h:outputText value="#{detail.quantity}" /></h:column>
            </h:dataTable>
        </h:column>
    </h:dataTable>
    

    The toggleDetails() function can look like (note that it takes JSF generated client ID into account):

    function toggleDetails(image) {
        var detailsId = image.id.substring(0, image.id.lastIndexOf(':')) + ':details';
        var details = document.getElementById(detailsId);
        if (details.style.display == 'none') {
            details.style.display = 'block';
            image.src = 'collapse.gif';
        } else {
            details.style.display = 'none';
            image.src = 'expand.gif';
        }
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm parsing an RSS feed that has an &#8217; in it. SimpleXML turns this
I know there's a lot of other questions out there that deal with this
I'm trying to decode HTML entries from here NYTimes.com and I cannot figure out
I have a jquery bug and I've been looking for hours now, I can't
link Im having trouble converting the html entites into html characters, (&# 8217;) i
That's pretty much it. I'm using Nokogiri to scrape a web page what has
I am trying to understand how to use SyndicationItem to display feed which is
I have a string like this: La Torre Eiffel paragonata all&#8217;Everest What PHP function
I've got a string that has curly quotes in it. I'd like to replace
I have a French site that I want to parse, but am running into

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.