[richfaces-issues] [JBoss JIRA] Commented: (RF-3812) CacheableTreeDataModel used on render response phase

Nick Belaevski (JIRA) jira-events at lists.jboss.org
Tue Aug 5 12:39:07 EDT 2008


    [ https://jira.jboss.org/jira/browse/RF-3812?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12423690#action_12423690 ] 

Nick Belaevski commented on RF-3812:
------------------------------------

CacheableTreeDataModel should not be created on initial rendering for the following code:

			<a4j:repeat value="#{bean.data2}">
			
				<rich:tree id="tree" switchType="#{bean.switchType}"
					value="#{bean.data}" var="data"
					nodeFace="#{data.name != 'param-value' ? 'input' : 'text'}"
                    >

					<f:facet name="icon">
						<h:outputText value="icon" rendered="#{bean.renderFacets}"/>
					</f:facet>

					<f:facet name="iconLeaf">
						<h:outputText value="leaf" rendered="#{bean.renderFacets}"/>
					</f:facet>

					<f:facet name="iconExpanded">
						<h:outputText value="expanded" rendered="#{bean.renderFacets}"/>
					</f:facet>

					<f:facet name="iconCollapsed">
						<h:outputText value="collapsed" rendered="#{bean.renderFacets}"/>
					</f:facet>

					<dnd:dndParam name="treeParam" value="Tree Parameter" />
					<dnd:dndParam name="accept" value="accept" />

					<rich:treeNode ondrop="blinkElement(this.getElement())" type="input" dropListener="#{bean.processDrop}" oncollapse="Element.removeClassName(event['treeItem'].getElement(), 'colored')" onexpand="Element.addClassName(event['treeItem'].getElement(), 'colored')">
						<h:outputText value="#{data} : " />
						<h:outputText value="#{bean.counter1} : " />
						<h:selectBooleanCheckbox value="#{bean.reRenderValue}" />
						<h:inputText value="#{data.name}" required="true" styleClass="inputs">
						</h:inputText>

						<dnd:dndParam name="nodeParam" value="Node Parameter" />
						<h:outputText value="&#160;" escape="false" />
						<a4j:commandLink ajaxSingle="true" value="Immediate Link" actionListener="#{bean.action}" onclick="Event.stop(event)"/>
					</rich:treeNode>
					<rich:treeNode type="text" nodeClass="customNode" acceptedTypes="file2" onselected="return false;">
						<h:outputText value="#{data}" />
					</rich:treeNode>
				</rich:tree>

			</a4j:repeat>


> CacheableTreeDataModel used on render response phase
> ----------------------------------------------------
>
>                 Key: RF-3812
>                 URL: https://jira.jboss.org/jira/browse/RF-3812
>             Project: RichFaces
>          Issue Type: Bug
>            Reporter: Denis Morozov
>            Assignee: Nick Belaevski
>             Fix For: 3.2.2
>
>
> Apply to tree component

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