[
https://issues.jboss.org/browse/RF-11382?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12632500#comment-12632500
]
Frederick Kämpfer edited comment on RF-11382 at 10/5/11 10:33 AM:
------------------------------------------------------------------
FYI here is the stack trace of the getter call with 4.1.0-SNAPSHOT. Maybe it
helps.
{code}
<< CALL OF GETTER >>
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:601)
at javax.el.BeanELResolver.getValue(BeanELResolver.java:302)
at
com.sun.faces.el.DemuxCompositeELResolver._getValue(DemuxCompositeELResolver.java:176)
at
com.sun.faces.el.DemuxCompositeELResolver.getValue(DemuxCompositeELResolver.java:203)
at com.sun.el.parser.AstValue.getValue(AstValue.java:116)
at com.sun.el.parser.AstValue.getValue(AstValue.java:163)
at com.sun.el.ValueExpressionImpl.getValue(ValueExpressionImpl.java:219)
at org.jboss.weld.el.WeldValueExpression.getValue(WeldValueExpression.java:55)
at
com.sun.faces.facelets.el.TagValueExpression.getValue(TagValueExpression.java:109)
at
javax.faces.component.ComponentStateHelper.eval(ComponentStateHelper.java:194)
at
javax.faces.component.ComponentStateHelper.eval(ComponentStateHelper.java:182)
at org.richfaces.component.UISequence.getValue(UISequence.java:178)
at
org.richfaces.component.UISequence.createExtendedDataModel(UISequence.java:112)
at
org.richfaces.component.UIDataTableBase.createExtendedDataModel(UIDataTableBase.java:195)
at
org.richfaces.component.UIDataAdaptor.getExtendedDataModel(UIDataAdaptor.java:467)
at org.richfaces.component.UIDataAdaptor.setRowKey(UIDataAdaptor.java:278)
at org.richfaces.component.UIDataAdaptor.visitTree(UIDataAdaptor.java:1313)
at javax.faces.component.UIComponent.visitTree(UIComponent.java:1600)
at javax.faces.component.UIForm.visitTree(UIForm.java:344)
at javax.faces.component.UIComponent.visitTree(UIComponent.java:1600)
at javax.faces.component.UIComponent.visitTree(UIComponent.java:1600)
at
com.sun.faces.application.view.StateManagementStrategyImpl.saveView(StateManagementStrategyImpl.java:160)
at
com.sun.faces.application.StateManagerImpl.saveView(StateManagerImpl.java:133)
at
com.sun.faces.application.view.WriteBehindStateWriter.flushToWriter(WriteBehindStateWriter.java:225)
at
com.sun.faces.application.view.FaceletViewHandlingStrategy.renderView(FaceletViewHandlingStrategy.java:418)
at
com.sun.faces.application.view.MultiViewHandler.renderView(MultiViewHandler.java:131)
at
javax.faces.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:288)
at
javax.faces.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:288)
at
com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:121)
at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:101)
at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:139)
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:594)
<<SERVLET STACK >>
{code}
was (Author: fkaempfer):
FYI here is the stack trace of the getter call with 4.1.0-SNAPSHOT. Maybe
it helps.
{code}
<< CALL OF GETTER >>
Information: at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
Information: at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
Information: at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
Information: at java.lang.reflect.Method.invoke(Method.java:601)
Information: at javax.el.BeanELResolver.getValue(BeanELResolver.java:302)
Information: at
com.sun.faces.el.DemuxCompositeELResolver._getValue(DemuxCompositeELResolver.java:176)
Information: at
com.sun.faces.el.DemuxCompositeELResolver.getValue(DemuxCompositeELResolver.java:203)
Information: at com.sun.el.parser.AstValue.getValue(AstValue.java:116)
Information: at com.sun.el.parser.AstValue.getValue(AstValue.java:163)
Information: at
com.sun.el.ValueExpressionImpl.getValue(ValueExpressionImpl.java:219)
Information: at
org.jboss.weld.el.WeldValueExpression.getValue(WeldValueExpression.java:55)
Information: at
com.sun.faces.facelets.el.TagValueExpression.getValue(TagValueExpression.java:109)
Information: at
javax.faces.component.ComponentStateHelper.eval(ComponentStateHelper.java:194)
Information: at
javax.faces.component.ComponentStateHelper.eval(ComponentStateHelper.java:182)
Information: at
org.richfaces.component.UISequence.getValue(UISequence.java:178)
Information: at
org.richfaces.component.UISequence.createExtendedDataModel(UISequence.java:112)
Information: at
org.richfaces.component.UIDataTableBase.createExtendedDataModel(UIDataTableBase.java:195)
Information: at
org.richfaces.component.UIDataAdaptor.getExtendedDataModel(UIDataAdaptor.java:467)
Information: at
org.richfaces.component.UIDataAdaptor.setRowKey(UIDataAdaptor.java:278)
Information: at
org.richfaces.component.UIDataAdaptor.visitTree(UIDataAdaptor.java:1313)
Information: at
javax.faces.component.UIComponent.visitTree(UIComponent.java:1600)
Information: at javax.faces.component.UIForm.visitTree(UIForm.java:344)
Information: at
javax.faces.component.UIComponent.visitTree(UIComponent.java:1600)
Information: at
javax.faces.component.UIComponent.visitTree(UIComponent.java:1600)
Information: at
com.sun.faces.application.view.StateManagementStrategyImpl.saveView(StateManagementStrategyImpl.java:160)
Information: at
com.sun.faces.application.StateManagerImpl.saveView(StateManagerImpl.java:133)
Information: at
com.sun.faces.application.view.WriteBehindStateWriter.flushToWriter(WriteBehindStateWriter.java:225)
Information: at
com.sun.faces.application.view.FaceletViewHandlingStrategy.renderView(FaceletViewHandlingStrategy.java:418)
Information: at
com.sun.faces.application.view.MultiViewHandler.renderView(MultiViewHandler.java:131)
Information: at
javax.faces.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:288)
Information: at
javax.faces.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:288)
Information: at
com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:121)
Information: at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:101)
Information: at
com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:139)
Information: at
javax.faces.webapp.FacesServlet.service(FacesServlet.java:594)
<<SERVLET STACK >>
{code}
> Datatable and ExtendedDatatable evaluate value attribute even if
> rendered=false
> -------------------------------------------------------------------------------
>
> Key: RF-11382
> URL: https://issues.jboss.org/browse/RF-11382
> Project: RichFaces
> Issue Type: Bug
> Security Level: Public(Everyone can see)
> Components: component-tables
> Affects Versions: 4.0.0.Final, 4.1.0.Milestone2
> Environment: Fedora 15, Glassfish 3.1.1, CDI (Weld)
> Reporter: Frederick Kämpfer
> Assignee: Brian Leathem
> Fix For: 4.2.0.Tracking
>
>
> In Richfaces 4 both datatable and extendedDatatable evaluate the value
> attribute even when rendered is set to false, even though it is not
> necessary. This makes it hard to achieve performance by trimming parts of the
> view tree. The built-in h:dataTable behaves correctly in that case.
> To reproduce simply try this snipplet:
> {code:xml}
> <h:form>
> <rich:dataTable value="#{myBean.property}" rendered="false">
> </rich:dataTable>
> </h:form>
> {code}
> Side note: The reason I'm posting this is, that i want to embed a
> rich:dataTable in a ajax loaded rich:togglePanelItem which is loaded on
> demand. Probably fixing the "render" problem will also make the dataTable
> lazy-loadable when switching to the corresponding togglePanelItem.
> I hope this is no duplicate, I only found RichFaces 3 issues mentioning this
> problem.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
_______________________________________________
richfaces-issues mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/richfaces-issues