p:rowExpansion does not expanse through dynamic p:columns

Components, Ajax Framework, Utilities and More.
Post Reply
tcnguyen
Posts: 36
Joined: 05 Apr 2011, 13:34

10 May 2011, 12:52

In PrimeFaces 3.0.M1, the expanding row is not expanded through the dynamic columns.

Code: Select all

		    <p:dataTable var="row" value="#{bean.matrixRows}">
		        <p:column style="width:16px">
		            <p:rowToggler/>
		        </p:column>
		
		        <p:column>
		            <f:facet name="header">Number</f:facet>
		            <h:outputText value="#{row.number}" />
		        </p:column>
		
		        <p:column>
		            <f:facet name="header">Text</f:facet>
		            <h:outputText value="#{row.text}" />
		        </p:column>

		        <p:columns value="#{bean.matrixColumns}" var="column" columnIndexVar="colIndex">
		            <f:facet name="header">
		            	<h:outputLabel value="#{column.header}"/>
		            </f:facet>
		            <h:outputLabel value="#{row.cells[colIndex].content}"/>
		        </p:columns>
				
		        <p:rowExpansion>
				    <p:dataTable var="subRow" value="#{row.subRows}">
				        <p:column style="width:16px">
				        </p:column>
				
				        <p:column>
				        </p:column>
				        
				        <p:column>
				            <h:outputText value="#{subRow.text}" />
				        </p:column>
				        
				        <p:columns value="#{bean.matrixColumns}" var="column" columnIndexVar="colIndex">
				            <h:outputLabel value="#{subRow.cells[colIndex].content}"/>
				        </p:columns>
				    </p:dataTable>		
		        </p:rowExpansion>
		    </p:dataTable>		
The width of the expanded row equals only the width of the first 3 static columns. Is it a bug?
PrimeFaces 3.0.RC1 / Spring Webflow 2.3.0.RELEASE / SpringSource tc v2.1 / Tomcat 6.0.29.C.RELEASE

User avatar
optimus.prime
Prime
Posts: 17420
Joined: 05 Jan 2009, 00:21
Location: Cybertron
Contact:

10 May 2011, 13:15

rowExpansion with p:columns not supported, you can create an enhancement request.

tcnguyen
Posts: 36
Joined: 05 Apr 2011, 13:34

10 May 2011, 13:45

PrimeFaces 3.0.RC1 / Spring Webflow 2.3.0.RELEASE / SpringSource tc v2.1 / Tomcat 6.0.29.C.RELEASE

Post Reply
  • Information
  • Who is online

    Users browsing this forum: Google [Bot] and 2 guests