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

Nick Belaevski (JIRA) jira-events at lists.jboss.org
Thu Jul 30 10:26:29 EDT 2009


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

Nick Belaevski resolved RF-7622.
--------------------------------

    Resolution: Won't Fix
      Assignee: Nick Belaevski


rich:columns evaluate expression on view build time, so taking value of "rendered" expression is not legal on this step.
Return empty value if it shouldn't be processed as a workaround. 

> 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
>            Assignee: Nick Belaevski
>
> 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