[richfaces-issues] [JBoss JIRA] Resolved: (RF-7510) sortOrder being evaluated even though rendered=false for rich:column

Andrey Markhel (JIRA) jira-events at lists.jboss.org
Mon Jul 13 09:04:29 EDT 2009


     [ https://jira.jboss.org/jira/browse/RF-7510?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Andrey Markhel resolved RF-7510.
--------------------------------

    Resolution: Cannot Reproduce Bug
      Assignee: Tsikhon Kuprevich  (was: Andrey Markhel)


Not reproduced. My code:
<h:form>
		<rich:dataTable value="#{capitalsBean.capitals}" var="cap" width="300px" columnClasses="center"
		rows="15" reRender="ds">
			<f:facet name="header">
				<h:outputText value="Sorting Example"/>
			</f:facet>
			<rich:column sortOrder="ASCENDING" rendered="#{capitalsBean.stateRendered}" sortBy="#{cap.state}"> 
				<f:facet name="header">
					<h:outputText value="State Name"/>
				</f:facet>
				<h:outputText value="#{cap.state}"/>
			</rich:column> 
			<rich:column sortBy="#{cap.name}">
				<f:facet name="header">
					<h:outputText value="State Capital"/>
				</f:facet>
				<h:outputText value="#{cap.name}"/> 
			</rich:column>
			<rich:column>
				<f:facet name="header">
					<h:outputText value="Time Zone"/>
				</f:facet>
				<h:outputText value="#{cap.timeZone}"/> 
			</rich:column>
			<f:facet name="footer">
				<rich:datascroller id="ds"></rich:datascroller>
			</f:facet>
		</rich:dataTable>
	</h:form>
All rendered without errors, and after click on arrows to sort, no errors occured. Put your code to reproduce.

> sortOrder being evaluated even though rendered=false for rich:column
> --------------------------------------------------------------------
>
>                 Key: RF-7510
>                 URL: https://jira.jboss.org/jira/browse/RF-7510
>             Project: RichFaces
>          Issue Type: Bug
>          Components: component-tables
>    Affects Versions: 3.3.1
>         Environment: Win XP, JBoss 4.2.3, Seam 2.1.2
>            Reporter: Wayne Bagguley
>            Assignee: Tsikhon Kuprevich
>            Priority: Minor
>             Fix For: 3.3.2.CR1
>
>
> I have some <rich:column> tags inside a rich:dataTable and some have the 'rendered' attribute tied to a bean field. If this bean field is false, indicating that there is no data for this column, the 'sortOrder' attribute on the <rich:column> tag is still evaluated and thus raises an exception because it returns a null value because that column doesn't exist in the data.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the richfaces-issues mailing list