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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T06:33:45+00:00 2026-06-15T06:33:45+00:00

I am using Primefaces p:datatable with p:rowExpansion. My aim was to show row details

  • 0

I am using Primefaces p:datatable with p:rowExpansion. My aim was to show row details using following xhtml.

<p:dataTable
        value="#{bilisimArizaBean.kullaniciBilisimArizalariListesi}"
        var="ariza">
        <p:column style="width:4%">
            <p:rowToggler />
        </p:column>
        <p:column headerText="Arıza no">
#{ariza.bilisimArizaId}
</p:column>
        <p:column headerText="">
#{ariza.bilisimArizaTuru.bilisimArizaTuru}
</p:column>
        <p:column>
#{ariza.cihazMarkasi} #{ariza.cihazModeli} #{ariza.cihazSeriNo}
</p:column>
        <p:column>
#{ariza.arizaAciklama}
</p:column>
        <p:rowExpansion>
            <div>
                <p:panelGrid id="display" columns="4" cellpadding="4"
                    style="border:1px;border-color:red;"
                    styleClass=" ui-widget-content grid">
                    <ui:repeat var="ticket" value="#{ariza.bilisimArizaTicket}">
                        <h:outputText value="Gelişme No" />
                        <h:outputText id="gelisme" value="#{ticket.ticketAciklama}" />
                        <h:outputText value="Durum:" />
                        <h:outputText id="durum" value="#{ticket.arizaDurum.durumAdi}" />
                        <br></br>
                    </ui:repeat>
                </p:panelGrid>
            </div>
        </p:rowExpansion>
    </p:dataTable>

I expected it will create table rows with columns inside p:rowExpansion. But it,ui:repeat produces a table with rows with only one column. And spans inside this column. That is

<table>
<tr>
<td><span>data</span><span>data</span><span>data</span></td>
</tr>
<tr>
<td><span>data</span><span>data</span><span>data</span></td>
</tr>
.
.
.
</table>

I expected and want the following

<table>
<tr>
<td>data</td>    <td>data</td>    <td>data</td>
</tr>
<tr>
<td>data</td>    <td>data</td>    <td>data</td>
</tr>
.
.
.
</table>

Why spans instead of columns in this case? And how can get columns instead of spans in one columns?

Regards

  • 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-15T06:33:46+00:00Added an answer on June 15, 2026 at 6:33 am

    In your particular construct, the <ui:repeat> inside <p:panelGrid> doesn’t generate multiple JSF components which generates its HTML each only once. Instead, it reuses the same JSF components to generate its HTML output multiple times on every iteration.

    This is not right. You need a <h:dataTable> or <p:dataTable> here instead of <p:panelGrid><ui:repeat>.

    E.g.

    <h:dataTable var="ticket" value="#{ariza.bilisimArizaTicket}">
        <h:column><h:outputText value="Gelişme No" /></h:column>
        <h:column><h:outputText id="gelisme" value="#{ticket.ticketAciklama}" /></h:column>
        <h:column><h:outputText value="Durum:" /></h:column>
        <h:column><h:outputText id="durum" value="#{ticket.arizaDurum.durumAdi}" /></h:column>
    </h:dataTable>
    

    Those spans are unrelated, they are just coming from <h:outputText>.

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

Sidebar

Related Questions

I am using primefaces 3.2. I've got the following situation: <h:form id=someForm> .. <p:dataTable
I'm using primefaces 2.2.1 and I want set f:validatorLength to one row in datatable
I am using primefaces datatable to show some data and I would like to
I have primefaces datatable, <p:panel id=resultpanel> <p:dataTable id=tbl var=job value=#{report.jobModel} paginator=true rows=#{report.jobModel.pageSize} paginatorPosition=bottom lazy=true
Using the PrimeFaces Demo filtering DataTable ( https://www.primefaces.org/showcase/ui/data/datatable/filter.xhtml ) as an example, I would
I am using primefaces datatable with clickable rows and I need to find way
I am using PrimeFaces <p:dataTable> with pagination. I use <h:selectBooleancheckbox> with a Map property
I'm using Primefaces 3.3.1 and have question. I have p:commandButton inside p:column of p:dataTable.
As can be seen here: primefaces scrolling DataTable And in the image: When using
I am using an datatable and every row has a selectonemenu as an column.

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.