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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T21:33:22+00:00 2026-06-01T21:33:22+00:00

Looks simple but I can’t do it. I need to display a series of

  • 0

Looks simple but I can’t do it.
I need to display a series of images, 3 in each line. For example, if I have 9 elements in my collection it should display 9 images in a 3 x 3 table.
I’m trying with this code:

     <h:form>
        <ice:panelGrid columns="3">
            <ui:repeat var="user" value="#{indexBean.users}" >
                <ice:panelGrid columns="1">
                    <ice:graphicImage value="#{user.picture}"/>
                    <ice:outputText value="#{user.name}"/>
                </ice:panelGrid>
            </ui:repeat>
        </ice:panelGrid>
    </h:form>

But instead of a 3 columns ordered table I get one picture under the other.
I can get all items horizontally arranged with css: display:inline but the line isn’t cut from 3 to 3 elements. I get a “infinite” line with all elements.

Some help please? Thanks!

  • 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-01T21:33:24+00:00Added an answer on June 1, 2026 at 9:33 pm

    I found a solution. Use a DIV as container of the data generated trougth ui:repeat. Here is the example:

    .panel_users {
        width:600px;
        height:400px;
        background-color:lightskyblue;
        margin:10px;
        overflow: auto;
        float:left;
    }
    
     <h:form>
        <div class="panel_users">
            <ui:repeat var="user" value="#{indexBean.users}" >
                <ice:panelGrid columns="1" style="float: left;">
                    <ice:graphicImage value="#{user.picture}"/>
                    <ice:outputText value="#{user.name}"/>
                </ice:panelGrid>
            </ui:repeat>
        </div>
    </h:form>
    

    Is important style="float: left;" in the panelGrid to make them aline horizontally.
    Sorry for my english 🙂

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

Sidebar

Related Questions

This looks very simple but I have little experience with jQuery and I can't
How can I create board for simple game, looks like for chess,but user could
It looks like a problem which could have simple solution, but I haven't found
there's a freedesktop.org notification system using DBUS. Looks simple enough, but I just can't
I have a simple question but I can't find an answer (please give me
This looks like it should be a relatively simple query but can someone please
It looks like this question is pretty simple but I can't find the clear
My problem is simple but I can't solve it ! I have an XML
I have an annoying SQL statement that seem simple but it looks awfull. I
this looks simple enough but I just can't get it to work. I could

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.