Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

blank columns in dataTable within a panelGrid #2655

Closed
pjt1 opened this issue Aug 22, 2017 · 2 comments
Closed

blank columns in dataTable within a panelGrid #2655

pjt1 opened this issue Aug 22, 2017 · 2 comments

Comments

@pjt1
Copy link

pjt1 commented Aug 22, 2017

1) Environment

  • PrimeFaces version: 6.1
  • Tested on 6.0 and no undesired results (issue does not exist for this version)
  • Application server + version: Tomee 7.0.2
  • Affected browsers: Chrome

2 and 3) Expected and Actual Behavior

Link below shows both with undesired behavior highlighted
https://ibb.co/cgeDj5

5) Sample XHTML

`

<h:head>
<title>Primefaces example</title>
</h:head>

<h:form id="form">

<p:panelGrid>
  <p:row>
    <p:column headerText="column1" >
      <h:outputText value="row1 col1" />
    </p:column>
    <p:column headerText="column2" >
      <h:outputText value="row1 col2" />
    </p:column>
  </p:row>
  <p:row>
    <p:column>
    <h:outputText value="row2 col1" />
    <p:dataTable var="car" value="#{basicView.cars}">
      <f:facet name="header">
        <h:outputText value="Table within a panelgrid column" />
      </f:facet>
        <p:column headerText="Id">
            <h:outputText value="#{car.id}" />
        </p:column>
     
        <p:column headerText="Year">
            <h:outputText value="#{car.year}" />
        </p:column>
     
        <p:column headerText="Brand">
            <h:outputText value="#{car.brand}" />
        </p:column>
     
        <p:column headerText="Color">
            <h:outputText value="#{car.color}" />
        </p:column>
    </p:dataTable>
    
    </p:column>
    
    <p:column>
      <h:outputText value="row 2 col2" />
    </p:column>
  </p:row>
	</p:panelGrid>
	
	
	<p:dataTable var="car" value="#{basicView.cars}">
	   <f:facet name="header">
	     <h:outputText value="Same table but not within a panelgrid column" />
	   </f:facet>
   <p:column headerText="Id">
       <h:outputText value="#{car.id}" />
   </p:column>

   <p:column headerText="Year">
       <h:outputText value="#{car.year}" />
   </p:column>

   <p:column headerText="Brand">
       <h:outputText value="#{car.brand}" />
   </p:column>

   <p:column headerText="Color">
       <h:outputText value="#{car.color}" />
   </p:column>
 </p:dataTable>

</h:form>

`
@pjt1
Copy link
Author

pjt1 commented Aug 23, 2017

Closing issue.....this was resolved in 6.1.1 through Issue# 2337

@pjt1 pjt1 closed this as completed Aug 23, 2017
@melloware
Copy link
Member

@pjt1 thanks for following up and closing. It is a big help to the developers to close tickets they may not know have been fixed!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants