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 7632841
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T06:43:40+00:00 2026-05-31T06:43:40+00:00

I want to translate this html table into JSF table <table border=1> <tr> <td>OS

  • 0

I want to translate this html table into JSF table

<table border="1">
   <tr>
     <td>OS Verison</td>
     <td>Linux</td>
   </tr>
   <tr>
     <td>Installed packages</td>
     <td>30</td>
   </tr>
   <tr>
     <td>Free HDD Space</td>
     <td>30 GB</td>
   </tr>
   <tr>
     <td>Installed RAM</td>
     <td>2 GB</td>
   </tr>
</table> 

I found many examples on Google how to write JSF table which retrieve data from database as list but none of them shows how to create table with two columns like the above.

P.S

How I can rewrite this code to achieve the same output result?

                    <h:dataTable id="books"
                             columnClasses="list-column-center,
                             list-column-right, list-column-center,
                             list-column-right" headerClass="list-header"
                             rowClasses="list-row" styleClass="list-
                             background" value="#{DashboardController.getDashboardList()}" var="store">   
                    <h:column>
                          <h:outputText  value="Session Timeout"/>
                          <h:outputText  value="Maximum Logged Users"/>
                    </h:column>
                    <h:column>                       
                          <h:outputText value="#{store.sessionTTL} minutes"/>
                          <h:outputText value="#{store.maxActiveUsers}"/>
                    </h:column>

                    <h:column>
                        <f:facet name="header">
                          <h:outputText  value="one"/>
                        </f:facet>
                    </h:column>
                    <h:column>
                        <f:facet name="header">
                          <h:outputText  value="two"/>
                        </f:facet>
                    </h:column>

                </h:dataTable> 

I want to display in a basic way like the first table the content of database table wich has 2 columns with just one row.

  • 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-31T06:43:42+00:00Added an answer on May 31, 2026 at 6:43 am

    There the <h:panelGrid> is for.

    <h:panelGrid columns="2" border="1">
        <h:panelGroup>OS Verison</h:panelGroup>
        <h:panelGroup>Linux</h:panelGroup>
    
        <h:panelGroup>Installed packages</h:panelGroup>
        <h:panelGroup>30</h:panelGroup>
    
        <h:panelGroup>Free HDD Space</h:panelGroup>
        <h:panelGroup>30 GB</h:panelGroup>
    
        <h:panelGroup>Installed RAM</h:panelGroup>
        <h:panelGroup>2 GB</h:panelGroup>
    </h:panelGrid>
    

    Please note that "plain vanilla HTML" works as good in JSF pages. It’s not true that you must use JSF components only if it’s solely for layout and/or presentation.

    See also:

    • Java EE 6 tutorial – Using JSF components
      • Laying Out Components with the h:panelGrid and h:panelGroup Tags
    • JSF tag documentation
      • <h:panelGrid> tag documentation
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I want to execute this script (view source) that uses Google Translate AJAX API
This is what i want to do: $line = 'blabla translate(test) blabla'; $line =
I want to translate xml documents with a certain schema into another schema. I
Basically, I want to translate the following into Seaside Smalltalk: $(.myDiv).bind('click', function(e) { console.log(e);
First of all, quickly what exactly I want to achieve: translate particular exception into
I want to translate this var db = new PracticeEntities(); var destinations = db.DestinationDetails.
I have $('#hidden-data').find('#' + $(this).attr('id')).html(currdata); var hiddata = $('#hidden-data').find('#' + $(this).attr('id')).html(); I want to
I have a little Java problem I want to translate to Python. Therefor I
I have a lot of text data and want to translate it to different
Here's my code: sentenceToTranslate = raw_input(Please write in the sentence you want to translate:

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.