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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T12:33:47+00:00 2026-06-08T12:33:47+00:00

I am creating page using JSF 2.0 where I am displaying all images that

  • 0

I am creating page using JSF 2.0 where I am displaying all images that are there.
Code I used is:

<h:dataTable id="imageList3" value="#{PersonalInformationDataBean.loadReviewReportDataById()}" var="reviewMyList" width="100%" border="1">
    <h:column>
        <h:graphicImage 
        value="DisplayImage?mainID=reviewReport&amp;id=#{reviewMyList.drawingId}" 
        />
    </h:column>
</h:dataTable>

Currently this is displaying one image per row which is right. What I wanted to do is, display four images in 1 row. If there are 9 images that I should have output in below format and not 9 rows.

+++++++++++++++++++++++++++++++++++++++++
+ Image 1 + Image 2 + Image 3 + Image 4 +
+ Image 5 + Image 6 + Image 7 + Image 8 +
+ Image 9 +         +         +         +
+++++++++++++++++++++++++++++++++++++++++

Please let me know if this is unclear.

  • 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-06-08T12:33:48+00:00Added an answer on June 8, 2026 at 12:33 pm

    You can place four <h:column> with single h:graphicImage in each or four h:graphicImage in one <h:column>

    well, you can modify your object (reviewMyList) to hold up to 3 inner objects which you will access inside each column like

    reviewMyList.first.drawingId

    reviewMyList.second.drawingId

    reviewMyList.third.drawingId ,

    ofcourse you will have to add

    rendered="reviewMyList.first ne null"

    rendered="reviewMyList.second ne null"

    rendered="reviewMyList.third ne null" to your <h:graphicImage

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm creating javascript Variable using c#.net inside code behind page and putting that variable
i am creating a page that will display multiple images from the database... i
I am creating web page using asp.net. Is it possible to remove/hide the browsers
I'm creating an dynamic image, which creates headers on my page using PHPs GD-library.
I am creating a page which dynamically creates input fields using jquery on the
When creating a new item - Web Form using Master Page I get a
Am creating a script using JQuery on an ASP.NET page. Have a JSON string
I'm creating a page in Wordpress via a front end form with the code
I'm creating a little dashboard page using CSS, i'm just planning the layout and
I am creating a custom log in page using VB in Visual Studio. Every

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.