[richfaces-issues] [JBoss JIRA] Created: (RF-7622) rich:columns var evaluated even when not rendered

Robin Stocker (JIRA) jira-events at lists.jboss.org
Wed Jul 29 11:00:29 EDT 2009


rich:columns var evaluated even when not rendered
-------------------------------------------------

                 Key: RF-7622
                 URL: https://jira.jboss.org/jira/browse/RF-7622
             Project: RichFaces
          Issue Type: Bug
          Components: component-tables
    Affects Versions: 3.3.1
         Environment: Tomcat 6, Linux
            Reporter: Robin Stocker


When loading the following page on the first time (the first tab is active), sandbox.columns is evaluated, even though the tab and the dataTable inside it are not rendered.


<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
<%@ taglib uri="http://richfaces.org/a4j" prefix="a4j"%>
<%@ taglib uri="http://richfaces.org/rich" prefix="rich"%>

<f:view>
	<a4j:page pageTitle="Example">
		<rich:tabPanel>
			<rich:tab label="First">
				<h:outputText>First!</h:outputText>
			</rich:tab>
			<rich:tab label="Second">
				<rich:dataTable value="#{sandbox.data}" var="record">
					<rich:columns value="#{sandbox.columns}" var="column">
						<f:facet name="header">
							<h:outputText value="#{column.label}" />
						</f:facet>
						<h:outputText value="#{record.values[column.id]}" />
					</rich:columns>
				</rich:dataTable>
			</rich:tab>
		</rich:tabPanel>
	</a4j:page>
</f:view>


If calculating sandbox.columns is an expensive operation, this slows down the load time. Our main navigation is built with tabs and three have rich:columns in them, so that has an impact on the load time.

-- 
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