[JBoss JIRA] (RF-11382) Datatable and ExtendedDatatable evaluate value attribute even if rendered=false
by Andrey Zhemoytuk (JIRA)
[ https://issues.jboss.org/browse/RF-11382?page=com.atlassian.jira.plugin.s... ]
Andrey Zhemoytuk commented on RF-11382:
---------------------------------------
Still the issue is reproducible on postback (at least when partial state saving is turned off).
Tried with RichFaces 4.3.3.Final and JSF 2.1.24 the following example:
{code:xml}
<h:form>
<rich:dataTable rendered="false" value="#{viewScope.put('invoked', true)}">
</rich:dataTable>
<a4j:commandButton value="Postback" execute="@this" render="result"/>
</h:form>
<h:panelGroup id="result">
#{invoked}
</h:panelGroup>
{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
> Labels: lazy-loaded
> Fix For: 4.3.0.M3
>
> Original Estimate: 4 hours
> Remaining Estimate: 4 hours
>
> 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
For more information on JIRA, see: http://www.atlassian.com/software/jira
12 years, 5 months
[JBoss JIRA] (RF-13103) rich:tree ajax switch type does not work when partial state saving is turned off
by Andrey Zhemoytuk (JIRA)
[ https://issues.jboss.org/browse/RF-13103?page=com.atlassian.jira.plugin.s... ]
Andrey Zhemoytuk updated RF-13103:
----------------------------------
Workaround Description:
The workaround might impact performance (client ids will be recalculated on every tree visit).
{code:java}
public class UITreeWorkaround extends UITree implements Workaround
{
@Override
public boolean visitTree(VisitContext visitContext, final VisitCallback callback)
{
return super.visitTree(visitContext, new VisitCallback()
{
@Override
public VisitResult visit(VisitContext context, UIComponent target)
{
// Forces client id to be reset
target.setId(target.getId());
return callback.visit(context, target);
}
});
}
}
{code}
And in faces-config:
{code:xml}
<component>
<component-type>org.richfaces.Tree</component-type>
<component-class>com.example.UITreeWorkaround</component-class>
</component>
{code}
was:
The workaround might impact performance (client ids will be recalculated on every tree visit).
{code:java}
public class UITreeWorkaround extends UITree {
@Override
public boolean visitTree(VisitContext visitContext, VisitCallback callback)
{
// Forces client id to be reset
for (UIComponent child : getChildren()) {
child.setId(child.getId());
}
return super.visitTree(visitContext, callback);
}
}
{code}
And in faces-config:
{code:xml}
<component>
<component-type>org.richfaces.Tree</component-type>
<component-class>com.example.UITreeWorkaround</component-class>
</component>
{code}
> rich:tree ajax switch type does not work when partial state saving is turned off
> --------------------------------------------------------------------------------
>
> Key: RF-13103
> URL: https://issues.jboss.org/browse/RF-13103
> Project: RichFaces
> Issue Type: Bug
> Security Level: Public(Everyone can see)
> Components: component-tree
> Affects Versions: 4.3.2
> Environment: RichFaces 4.3.3.Final
> JSF RI 2.1.19 (same issue with 2.1.24)
> Reporter: Andrey Zhemoytuk
>
> Tree with ajax switch type do not expand when partial state saving is turned off.
> Clicking node second time gives:
> {code}
> java.lang.IllegalStateException: Component ID treeForm:tree:j_idt4 has already been found in the view.
> at com.sun.faces.util.Util.checkIdUniqueness(Util.java:836)
> at com.sun.faces.util.Util.checkIdUniqueness(Util.java:820)
> at com.sun.faces.util.Util.checkIdUniqueness(Util.java:820)
> at com.sun.faces.util.Util.checkIdUniqueness(Util.java:820)
> at com.sun.faces.application.view.FaceletFullStateManagementStrategy.saveView(FaceletFullStateManagementStrategy.java:685)
> at com.sun.faces.application.StateManagerImpl.saveView(StateManagerImpl.java:89)
> at javax.faces.application.StateManager.getViewState(StateManager.java:553)
> at org.richfaces.context.ExtendedPartialViewContextImpl.renderState(ExtendedPartialViewContextImpl.java:416)
> at org.richfaces.context.ExtendedPartialViewContextImpl.processPartialRenderPhase(ExtendedPartialViewContextImpl.java:313)
> at org.richfaces.context.ExtendedPartialViewContextImpl.processPartial(ExtendedPartialViewContextImpl.java:213)
> at javax.faces.component.UIViewRoot.encodeChildren(UIViewRoot.java:973)
> at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1779)
> at com.sun.faces.application.view.FaceletViewHandlingStrategy.renderView(FaceletViewHandlingStrategy.java:413)
> at com.sun.faces.application.view.MultiViewHandler.renderView(MultiViewHandler.java:124)
> at javax.faces.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:286)
> at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:120)
> 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)
> {code}
> Test example:
> {code:xml}
> <h:form id="treeForm">
> <rich:tree id="tree"
> nodeType="#{node.type}"
> var="node"
> value="#{treeBean.rootNode}"
> toggleType="ajax"
> selectionType="ajax">
> <rich:treeNode type="treeNodeType">
> #{node}
> </rich:treeNode>
> </rich:tree>
> </h:form>
> {code}
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
12 years, 5 months
[JBoss JIRA] (RF-13103) rich:tree ajax switch type does not work when partial state saving is turned off
by Andrey Zhemoytuk (JIRA)
[ https://issues.jboss.org/browse/RF-13103?page=com.atlassian.jira.plugin.s... ]
Andrey Zhemoytuk updated RF-13103:
----------------------------------
Workaround Description:
The workaround might impact performance (client ids will be recalculated on every tree visit).
public class UITreeWorkaround extends UITree {
@Override
public boolean visitTree(VisitContext visitContext, VisitCallback callback)
{
// Forces client id to be reset
for (UIComponent child : getChildren()) {
child.setId(child.getId());
}
return super.visitTree(visitContext, callback);
}
}
And in faces-config:
<component>
<component-type>org.richfaces.Tree</component-type>
<component-class>com.example.UITreeWorkaround</component-class>
</component>
> rich:tree ajax switch type does not work when partial state saving is turned off
> --------------------------------------------------------------------------------
>
> Key: RF-13103
> URL: https://issues.jboss.org/browse/RF-13103
> Project: RichFaces
> Issue Type: Bug
> Security Level: Public(Everyone can see)
> Components: component-tree
> Affects Versions: 4.3.2
> Environment: RichFaces 4.3.3.Final
> JSF RI 2.1.19 (same issue with 2.1.24)
> Reporter: Andrey Zhemoytuk
>
> Tree with ajax switch type do not expand when partial state saving is turned off.
> Clicking node second time gives:
> {code}
> java.lang.IllegalStateException: Component ID treeForm:tree:j_idt4 has already been found in the view.
> at com.sun.faces.util.Util.checkIdUniqueness(Util.java:836)
> at com.sun.faces.util.Util.checkIdUniqueness(Util.java:820)
> at com.sun.faces.util.Util.checkIdUniqueness(Util.java:820)
> at com.sun.faces.util.Util.checkIdUniqueness(Util.java:820)
> at com.sun.faces.application.view.FaceletFullStateManagementStrategy.saveView(FaceletFullStateManagementStrategy.java:685)
> at com.sun.faces.application.StateManagerImpl.saveView(StateManagerImpl.java:89)
> at javax.faces.application.StateManager.getViewState(StateManager.java:553)
> at org.richfaces.context.ExtendedPartialViewContextImpl.renderState(ExtendedPartialViewContextImpl.java:416)
> at org.richfaces.context.ExtendedPartialViewContextImpl.processPartialRenderPhase(ExtendedPartialViewContextImpl.java:313)
> at org.richfaces.context.ExtendedPartialViewContextImpl.processPartial(ExtendedPartialViewContextImpl.java:213)
> at javax.faces.component.UIViewRoot.encodeChildren(UIViewRoot.java:973)
> at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1779)
> at com.sun.faces.application.view.FaceletViewHandlingStrategy.renderView(FaceletViewHandlingStrategy.java:413)
> at com.sun.faces.application.view.MultiViewHandler.renderView(MultiViewHandler.java:124)
> at javax.faces.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:286)
> at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:120)
> 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)
> {code}
> Test example:
> {code:xml}
> <h:form id="treeForm">
> <rich:tree id="tree"
> nodeType="#{node.type}"
> var="node"
> value="#{treeBean.rootNode}"
> toggleType="ajax"
> selectionType="ajax">
> <rich:treeNode type="treeNodeType">
> #{node}
> </rich:treeNode>
> </rich:tree>
> </h:form>
> {code}
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
12 years, 5 months
[JBoss JIRA] (RF-13103) rich:tree ajax switch type does not work when partial state saving is turned off
by Andrey Zhemoytuk (JIRA)
[ https://issues.jboss.org/browse/RF-13103?page=com.atlassian.jira.plugin.s... ]
Andrey Zhemoytuk updated RF-13103:
----------------------------------
Workaround Description:
The workaround might impact performance (client ids will be recalculated on every tree visit).
{code:java}
public class UITreeWorkaround extends UITree {
@Override
public boolean visitTree(VisitContext visitContext, VisitCallback callback)
{
// Forces client id to be reset
for (UIComponent child : getChildren()) {
child.setId(child.getId());
}
return super.visitTree(visitContext, callback);
}
}
{code}
And in faces-config:
{code:xml}
<component>
<component-type>org.richfaces.Tree</component-type>
<component-class>com.example.UITreeWorkaround</component-class>
</component>
{code}
was:
The workaround might impact performance (client ids will be recalculated on every tree visit).
public class UITreeWorkaround extends UITree {
@Override
public boolean visitTree(VisitContext visitContext, VisitCallback callback)
{
// Forces client id to be reset
for (UIComponent child : getChildren()) {
child.setId(child.getId());
}
return super.visitTree(visitContext, callback);
}
}
And in faces-config:
<component>
<component-type>org.richfaces.Tree</component-type>
<component-class>com.example.UITreeWorkaround</component-class>
</component>
> rich:tree ajax switch type does not work when partial state saving is turned off
> --------------------------------------------------------------------------------
>
> Key: RF-13103
> URL: https://issues.jboss.org/browse/RF-13103
> Project: RichFaces
> Issue Type: Bug
> Security Level: Public(Everyone can see)
> Components: component-tree
> Affects Versions: 4.3.2
> Environment: RichFaces 4.3.3.Final
> JSF RI 2.1.19 (same issue with 2.1.24)
> Reporter: Andrey Zhemoytuk
>
> Tree with ajax switch type do not expand when partial state saving is turned off.
> Clicking node second time gives:
> {code}
> java.lang.IllegalStateException: Component ID treeForm:tree:j_idt4 has already been found in the view.
> at com.sun.faces.util.Util.checkIdUniqueness(Util.java:836)
> at com.sun.faces.util.Util.checkIdUniqueness(Util.java:820)
> at com.sun.faces.util.Util.checkIdUniqueness(Util.java:820)
> at com.sun.faces.util.Util.checkIdUniqueness(Util.java:820)
> at com.sun.faces.application.view.FaceletFullStateManagementStrategy.saveView(FaceletFullStateManagementStrategy.java:685)
> at com.sun.faces.application.StateManagerImpl.saveView(StateManagerImpl.java:89)
> at javax.faces.application.StateManager.getViewState(StateManager.java:553)
> at org.richfaces.context.ExtendedPartialViewContextImpl.renderState(ExtendedPartialViewContextImpl.java:416)
> at org.richfaces.context.ExtendedPartialViewContextImpl.processPartialRenderPhase(ExtendedPartialViewContextImpl.java:313)
> at org.richfaces.context.ExtendedPartialViewContextImpl.processPartial(ExtendedPartialViewContextImpl.java:213)
> at javax.faces.component.UIViewRoot.encodeChildren(UIViewRoot.java:973)
> at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1779)
> at com.sun.faces.application.view.FaceletViewHandlingStrategy.renderView(FaceletViewHandlingStrategy.java:413)
> at com.sun.faces.application.view.MultiViewHandler.renderView(MultiViewHandler.java:124)
> at javax.faces.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:286)
> at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:120)
> 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)
> {code}
> Test example:
> {code:xml}
> <h:form id="treeForm">
> <rich:tree id="tree"
> nodeType="#{node.type}"
> var="node"
> value="#{treeBean.rootNode}"
> toggleType="ajax"
> selectionType="ajax">
> <rich:treeNode type="treeNodeType">
> #{node}
> </rich:treeNode>
> </rich:tree>
> </h:form>
> {code}
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
12 years, 5 months
[JBoss JIRA] (RF-10793) ExtendedDataTable selection with Ctrl+click does not correctly update selection backing bean without clicking first
by David Lee (JIRA)
[ https://issues.jboss.org/browse/RF-10793?page=com.atlassian.jira.plugin.s... ]
David Lee edited comment on RF-10793 at 7/23/13 5:17 AM:
---------------------------------------------------------
Hi Guys,
The fix JavaScript will cause another issue,
if the table with dataScroller -- then the selection will be clean up when user switch the page.
So since I have the page stuff, I cannot add the "x" to do clean selection in backend.
When I try to figure out why the statement always goes wrong,
I found the key of this problem might in TableSelectionRendererContributor.java:
for line 90
>>
ClientSelection _oldClientSelection = (ClientSelection) table
.getAttributes().get(CLIENT_SELECTION);
<<
The _oldClientSelection never got update, so when the code checking for shouldRemoveFromSelection(),
always return false!
>>
// Decide whether to remove new row to selection based on comparison with
// old one
public boolean shouldRemoveFromSelection(int i,
ClientSelection oldSelection, ClientSelection newSelection) {
return !newSelection.isReset()
&& (!newSelection.isSelectAll() && (!newSelection.isSelected(i) && oldSelection
.isSelected(i)));
}
<<
The oldSelection.isSelected( i ) always return false.
That cause the backend selection goes wrong.
Any workaround for this one?
By the way, I'm using 3.3.3Final
was (Author: dlee606):
Hi Guys,
The fix JavaScript will cause another issue,
if the table with dataScroller -- then the selection will be clean up when user switch the page.
So since I have the page stuff, I cannot add the "x" to do clean selection in backend.
When I try to figure out why the statement always goes wrong,
I found the key of this problem might in TableSelectionRendererContributor.java:
for line 90
>>
ClientSelection _oldClientSelection = (ClientSelection) table
.getAttributes().get(CLIENT_SELECTION);
<<
The _oldClientSelection never got update, so when the code checking for shouldRemoveFromSelection(),
always return false!
>>
// Decide whether to remove new row to selection based on comparison with
// old one
public boolean shouldRemoveFromSelection(int i,
ClientSelection oldSelection, ClientSelection newSelection) {
return !newSelection.isReset()
&& (!newSelection.isSelectAll() && (!newSelection.isSelected(i) && oldSelection
.isSelected(i)));
}
<<
The oldSelection.isSelected( i ) always return false.
That cause the backend selection goes wrong.
Any workaround for this one?
> ExtendedDataTable selection with Ctrl+click does not correctly update selection backing bean without clicking first
> -------------------------------------------------------------------------------------------------------------------
>
> Key: RF-10793
> URL: https://issues.jboss.org/browse/RF-10793
> Project: RichFaces
> Issue Type: Bug
> Security Level: Public(Everyone can see)
> Components: component-tables
> Affects Versions: 3.3.3.Final
> Environment: OS: SLES 10 SP2
> JBoss EAP 4.3.0.GA_CP03
> Application using JBoss Seam 2.1.2
> Reporter: Eduard Ereza
> Labels: extendedDataTable, richfaces, richfaces-showcase, selection
> Fix For: 3.Future
>
> Attachments: extdt_solution.txt
>
>
> Selecting rows with Ctrl+click on extendedDataTable just after rendering it (first time or reRender) selects them in the backing bean, but then deselecting the same rows with Ctrl+click does not deselect them in the backing bean. The same happens if there is a selection when the component is rendered: then, deselecting a value deselects it from the backing bean, but selecting it again does not select it in the backing bean.
> When you click (without Ctrl) for the first time, everything works as it should.
> This is also reproduceable on RichFaces Live Demo: http://livedemo.exadel.com/richfaces-demo/richfaces/extendedDataTable.jsf (see Steps to Reproduce).
> This is probably related to RF-8681.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
12 years, 5 months
[JBoss JIRA] (RF-10793) ExtendedDataTable selection with Ctrl+click does not correctly update selection backing bean without clicking first
by David Lee (JIRA)
[ https://issues.jboss.org/browse/RF-10793?page=com.atlassian.jira.plugin.s... ]
David Lee commented on RF-10793:
--------------------------------
Hi Guys,
The fix JavaScript will cause another issue,
if the table with dataScroller -- then the selection will be clean up when user switch the page.
So since I have the page stuff, I cannot add the "x" to do clean selection in backend.
When I try to figure out why the statement always goes wrong,
I found the key of this problem might in TableSelectionRendererContributor.java:
for line 90
>>
ClientSelection _oldClientSelection = (ClientSelection) table
.getAttributes().get(CLIENT_SELECTION);
<<
The _oldClientSelection never got update, so when the code checking for shouldRemoveFromSelection(),
always return false!
>>
// Decide whether to remove new row to selection based on comparison with
// old one
public boolean shouldRemoveFromSelection(int i,
ClientSelection oldSelection, ClientSelection newSelection) {
return !newSelection.isReset()
&& (!newSelection.isSelectAll() && (!newSelection.isSelected(i) && oldSelection
.isSelected(i)));
}
<<
The oldSelection.isSelected( i ) always return false.
That cause the backend selection goes wrong.
Any workaround for this one?
> ExtendedDataTable selection with Ctrl+click does not correctly update selection backing bean without clicking first
> -------------------------------------------------------------------------------------------------------------------
>
> Key: RF-10793
> URL: https://issues.jboss.org/browse/RF-10793
> Project: RichFaces
> Issue Type: Bug
> Security Level: Public(Everyone can see)
> Components: component-tables
> Affects Versions: 3.3.3.Final
> Environment: OS: SLES 10 SP2
> JBoss EAP 4.3.0.GA_CP03
> Application using JBoss Seam 2.1.2
> Reporter: Eduard Ereza
> Labels: extendedDataTable, richfaces, richfaces-showcase, selection
> Fix For: 3.Future
>
> Attachments: extdt_solution.txt
>
>
> Selecting rows with Ctrl+click on extendedDataTable just after rendering it (first time or reRender) selects them in the backing bean, but then deselecting the same rows with Ctrl+click does not deselect them in the backing bean. The same happens if there is a selection when the component is rendered: then, deselecting a value deselects it from the backing bean, but selecting it again does not select it in the backing bean.
> When you click (without Ctrl) for the first time, everything works as it should.
> This is also reproduceable on RichFaces Live Demo: http://livedemo.exadel.com/richfaces-demo/richfaces/extendedDataTable.jsf (see Steps to Reproduce).
> This is probably related to RF-8681.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
12 years, 5 months
[JBoss JIRA] (RF-13103) rich:tree ajax switch type does not work when partial state saving is turned off
by Andrey Zhemoytuk (JIRA)
[ https://issues.jboss.org/browse/RF-13103?page=com.atlassian.jira.plugin.s... ]
Andrey Zhemoytuk commented on RF-13103:
---------------------------------------
It seems the problem is related to clientId caching by UITreeNode instances.
E.g. when view state is being saved tree node state is saved by key: treeForm:tree:1:j_idt4
And when restored - clientId is resolved to: treeForm:tree:j_idt4
It seems (I haven't tried to reproduce for other components) the problem might appear for other components which extend UIDataAdaptor.
> rich:tree ajax switch type does not work when partial state saving is turned off
> --------------------------------------------------------------------------------
>
> Key: RF-13103
> URL: https://issues.jboss.org/browse/RF-13103
> Project: RichFaces
> Issue Type: Bug
> Security Level: Public(Everyone can see)
> Components: component-tree
> Affects Versions: 4.3.2
> Environment: RichFaces 4.3.3.Final
> JSF RI 2.1.19 (same issue with 2.1.24)
> Reporter: Andrey Zhemoytuk
>
> Tree with ajax switch type do not expand when partial state saving is turned off.
> Clicking node second time gives:
> {code}
> java.lang.IllegalStateException: Component ID treeForm:tree:j_idt4 has already been found in the view.
> at com.sun.faces.util.Util.checkIdUniqueness(Util.java:836)
> at com.sun.faces.util.Util.checkIdUniqueness(Util.java:820)
> at com.sun.faces.util.Util.checkIdUniqueness(Util.java:820)
> at com.sun.faces.util.Util.checkIdUniqueness(Util.java:820)
> at com.sun.faces.application.view.FaceletFullStateManagementStrategy.saveView(FaceletFullStateManagementStrategy.java:685)
> at com.sun.faces.application.StateManagerImpl.saveView(StateManagerImpl.java:89)
> at javax.faces.application.StateManager.getViewState(StateManager.java:553)
> at org.richfaces.context.ExtendedPartialViewContextImpl.renderState(ExtendedPartialViewContextImpl.java:416)
> at org.richfaces.context.ExtendedPartialViewContextImpl.processPartialRenderPhase(ExtendedPartialViewContextImpl.java:313)
> at org.richfaces.context.ExtendedPartialViewContextImpl.processPartial(ExtendedPartialViewContextImpl.java:213)
> at javax.faces.component.UIViewRoot.encodeChildren(UIViewRoot.java:973)
> at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1779)
> at com.sun.faces.application.view.FaceletViewHandlingStrategy.renderView(FaceletViewHandlingStrategy.java:413)
> at com.sun.faces.application.view.MultiViewHandler.renderView(MultiViewHandler.java:124)
> at javax.faces.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:286)
> at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:120)
> 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)
> {code}
> Test example:
> {code:xml}
> <h:form id="treeForm">
> <rich:tree id="tree"
> nodeType="#{node.type}"
> var="node"
> value="#{treeBean.rootNode}"
> toggleType="ajax"
> selectionType="ajax">
> <rich:treeNode type="treeNodeType">
> #{node}
> </rich:treeNode>
> </rich:tree>
> </h:form>
> {code}
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
12 years, 5 months
[JBoss JIRA] (RF-13103) rich:tree ajax switch type does not work when partial state saving is turned off
by Andrey Zhemoytuk (JIRA)
[ https://issues.jboss.org/browse/RF-13103?page=com.atlassian.jira.plugin.s... ]
Andrey Zhemoytuk updated RF-13103:
----------------------------------
Description:
Tree with ajax switch type do not expand when partial state saving is turned off.
Clicking node second time gives:
{code}
java.lang.IllegalStateException: Component ID treeForm:tree:j_idt4 has already been found in the view.
at com.sun.faces.util.Util.checkIdUniqueness(Util.java:836)
at com.sun.faces.util.Util.checkIdUniqueness(Util.java:820)
at com.sun.faces.util.Util.checkIdUniqueness(Util.java:820)
at com.sun.faces.util.Util.checkIdUniqueness(Util.java:820)
at com.sun.faces.application.view.FaceletFullStateManagementStrategy.saveView(FaceletFullStateManagementStrategy.java:685)
at com.sun.faces.application.StateManagerImpl.saveView(StateManagerImpl.java:89)
at javax.faces.application.StateManager.getViewState(StateManager.java:553)
at org.richfaces.context.ExtendedPartialViewContextImpl.renderState(ExtendedPartialViewContextImpl.java:416)
at org.richfaces.context.ExtendedPartialViewContextImpl.processPartialRenderPhase(ExtendedPartialViewContextImpl.java:313)
at org.richfaces.context.ExtendedPartialViewContextImpl.processPartial(ExtendedPartialViewContextImpl.java:213)
at javax.faces.component.UIViewRoot.encodeChildren(UIViewRoot.java:973)
at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1779)
at com.sun.faces.application.view.FaceletViewHandlingStrategy.renderView(FaceletViewHandlingStrategy.java:413)
at com.sun.faces.application.view.MultiViewHandler.renderView(MultiViewHandler.java:124)
at javax.faces.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:286)
at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:120)
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)
{code}
Test example:
{code:xml}
<h:form id="treeForm">
<rich:tree id="tree"
nodeType="#{node.type}"
var="node"
value="#{treeBean.rootNode}"
toggleType="ajax"
selectionType="ajax">
<rich:treeNode type="treeNodeType">
#{node}
</rich:treeNode>
</rich:tree>
</h:form>
{code}
was:
Tree with ajax switch type do not expand when partial state saving is turned off.
Clicking node second time gives:
{code}
java.lang.IllegalStateException: Component ID treeFrm:tree:j_idt4 has already been found in the view.
at com.sun.faces.util.Util.checkIdUniqueness(Util.java:836)
at com.sun.faces.util.Util.checkIdUniqueness(Util.java:820)
at com.sun.faces.util.Util.checkIdUniqueness(Util.java:820)
at com.sun.faces.util.Util.checkIdUniqueness(Util.java:820)
at com.sun.faces.application.view.FaceletFullStateManagementStrategy.saveView(FaceletFullStateManagementStrategy.java:685)
at com.sun.faces.application.StateManagerImpl.saveView(StateManagerImpl.java:89)
at javax.faces.application.StateManager.getViewState(StateManager.java:553)
at org.richfaces.context.ExtendedPartialViewContextImpl.renderState(ExtendedPartialViewContextImpl.java:416)
at org.richfaces.context.ExtendedPartialViewContextImpl.processPartialRenderPhase(ExtendedPartialViewContextImpl.java:313)
at org.richfaces.context.ExtendedPartialViewContextImpl.processPartial(ExtendedPartialViewContextImpl.java:213)
at javax.faces.component.UIViewRoot.encodeChildren(UIViewRoot.java:973)
at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1779)
at com.sun.faces.application.view.FaceletViewHandlingStrategy.renderView(FaceletViewHandlingStrategy.java:413)
at com.sun.faces.application.view.MultiViewHandler.renderView(MultiViewHandler.java:124)
at javax.faces.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:286)
at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:120)
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)
{code}
Test example:
{code:xml}
<h:form id="treeForm">
<rich:tree id="tree"
nodeType="#{node.type}"
var="node"
value="#{treeBean.rootNode}"
toggleType="ajax"
selectionType="ajax">
<rich:treeNode type="treeNodeType">
#{node}
</rich:treeNode>
</rich:tree>
</h:form>
{code}
> rich:tree ajax switch type does not work when partial state saving is turned off
> --------------------------------------------------------------------------------
>
> Key: RF-13103
> URL: https://issues.jboss.org/browse/RF-13103
> Project: RichFaces
> Issue Type: Bug
> Security Level: Public(Everyone can see)
> Components: component-tree
> Affects Versions: 4.3.2
> Environment: RichFaces 4.3.3.Final
> JSF RI 2.1.19 (same issue with 2.1.24)
> Reporter: Andrey Zhemoytuk
>
> Tree with ajax switch type do not expand when partial state saving is turned off.
> Clicking node second time gives:
> {code}
> java.lang.IllegalStateException: Component ID treeForm:tree:j_idt4 has already been found in the view.
> at com.sun.faces.util.Util.checkIdUniqueness(Util.java:836)
> at com.sun.faces.util.Util.checkIdUniqueness(Util.java:820)
> at com.sun.faces.util.Util.checkIdUniqueness(Util.java:820)
> at com.sun.faces.util.Util.checkIdUniqueness(Util.java:820)
> at com.sun.faces.application.view.FaceletFullStateManagementStrategy.saveView(FaceletFullStateManagementStrategy.java:685)
> at com.sun.faces.application.StateManagerImpl.saveView(StateManagerImpl.java:89)
> at javax.faces.application.StateManager.getViewState(StateManager.java:553)
> at org.richfaces.context.ExtendedPartialViewContextImpl.renderState(ExtendedPartialViewContextImpl.java:416)
> at org.richfaces.context.ExtendedPartialViewContextImpl.processPartialRenderPhase(ExtendedPartialViewContextImpl.java:313)
> at org.richfaces.context.ExtendedPartialViewContextImpl.processPartial(ExtendedPartialViewContextImpl.java:213)
> at javax.faces.component.UIViewRoot.encodeChildren(UIViewRoot.java:973)
> at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1779)
> at com.sun.faces.application.view.FaceletViewHandlingStrategy.renderView(FaceletViewHandlingStrategy.java:413)
> at com.sun.faces.application.view.MultiViewHandler.renderView(MultiViewHandler.java:124)
> at javax.faces.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:286)
> at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:120)
> 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)
> {code}
> Test example:
> {code:xml}
> <h:form id="treeForm">
> <rich:tree id="tree"
> nodeType="#{node.type}"
> var="node"
> value="#{treeBean.rootNode}"
> toggleType="ajax"
> selectionType="ajax">
> <rich:treeNode type="treeNodeType">
> #{node}
> </rich:treeNode>
> </rich:tree>
> </h:form>
> {code}
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
12 years, 5 months
[JBoss JIRA] (RF-13103) rich:tree ajax switch type does not work when partial state saving is turned off
by Andrey Zhemoytuk (JIRA)
Andrey Zhemoytuk created RF-13103:
-------------------------------------
Summary: rich:tree ajax switch type does not work when partial state saving is turned off
Key: RF-13103
URL: https://issues.jboss.org/browse/RF-13103
Project: RichFaces
Issue Type: Bug
Security Level: Public (Everyone can see)
Components: component-tree
Affects Versions: 4.3.2
Environment: RichFaces 4.3.3.Final
JSF RI 2.1.19 (same issue with 2.1.24)
Reporter: Andrey Zhemoytuk
Tree with ajax switch type do not expand when partial state saving is turned off.
Clicking node second time gives:
{code}
java.lang.IllegalStateException: Component ID treeFrm:tree:j_idt4 has already been found in the view.
at com.sun.faces.util.Util.checkIdUniqueness(Util.java:836)
at com.sun.faces.util.Util.checkIdUniqueness(Util.java:820)
at com.sun.faces.util.Util.checkIdUniqueness(Util.java:820)
at com.sun.faces.util.Util.checkIdUniqueness(Util.java:820)
at com.sun.faces.application.view.FaceletFullStateManagementStrategy.saveView(FaceletFullStateManagementStrategy.java:685)
at com.sun.faces.application.StateManagerImpl.saveView(StateManagerImpl.java:89)
at javax.faces.application.StateManager.getViewState(StateManager.java:553)
at org.richfaces.context.ExtendedPartialViewContextImpl.renderState(ExtendedPartialViewContextImpl.java:416)
at org.richfaces.context.ExtendedPartialViewContextImpl.processPartialRenderPhase(ExtendedPartialViewContextImpl.java:313)
at org.richfaces.context.ExtendedPartialViewContextImpl.processPartial(ExtendedPartialViewContextImpl.java:213)
at javax.faces.component.UIViewRoot.encodeChildren(UIViewRoot.java:973)
at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1779)
at com.sun.faces.application.view.FaceletViewHandlingStrategy.renderView(FaceletViewHandlingStrategy.java:413)
at com.sun.faces.application.view.MultiViewHandler.renderView(MultiViewHandler.java:124)
at javax.faces.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:286)
at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:120)
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)
{code}
Test example:
{code:xml}
<h:form id="treeForm">
<rich:tree id="tree"
nodeType="#{node.type}"
var="node"
value="#{treeBean.rootNode}"
toggleType="ajax"
selectionType="ajax">
<rich:treeNode type="treeNodeType">
#{node}
</rich:treeNode>
</rich:tree>
</h:form>
{code}
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
12 years, 5 months