Details
-
Bug
-
Status: Open
-
Critical
-
Resolution: Unresolved
-
1.1.3, 1.1.5-SNAPSHOT
-
None
-
None
-
win XP SP2, jdk1.5.0, tomcat-5.5.20
Description
My usecase is a dataTable contaning checkedNodes trees.
The checkBoxes events are managed correctly when there is 1 row.
From two rows, problems happened:
for this 2 rows structure:
-[]folder1
-[]file1
-[]file2
---------------------------------------------------
-[]folder2
-[]file3
-[]file4
If I check folder1 node, folder 1 is unchecked by backend actions (if folder1 is expanded, it expands folder2).
log:
folder2.selectedValueChange(), oldValue: false, newValue: true
folder2.setSelected(true) HAS CHANGED !
folder2.setSelected(true)
folder2.setSelected(false) HAS CHANGED !
If I check folder2 node (all folder collapsed), folder 2 is checked by backend actions.
log:
folder2.selectedValueChange(), oldValue: false, newValue: true
folder2.setSelected(true) HAS CHANGED !
folder2.setSelected(false) HAS CHANGED !
folder2.setSelected(true) HAS CHANGED !
Here is the page structure:
<pre>
<h:dataTable var="tableItem" id="table" value="#
"
preserveDataModel="false" preserveSort="false" sortable="false"
styleClass="standardTable" headerClass="standardTable_Header"
footerClass="standardTable_Header"
rowClasses="standardTable_Row1,standardTable_Row2"
columnClasses="standardTable_Column, standardTable_ColumnCentered, standardTable_Column">
<ui:param name="sortedCol" value="#
" />
<t:column defaultSorted="true" >
<f:facet name="header">
<h:outputText value="#
" />
</f:facet>
<h:panelGroup rendered="#
">
<t:tree2 value="#
"
var="subnode"
showLines="false" >
<f:facet name="folder">
<h:panelGroup>
<h:selectBooleanCheckbox
id="_check"
value="#
valueChangeListener="#{subnode.infoBean.selectedValueChange}"
onclick="this.form.submit()"/>
<h:outputText value="#{subnode.description}" />
</h:panelGroup>
</f:facet>
<f:facet name="file">
<h:panelGroup>
<h:selectBooleanCheckbox
id="_check"
value="#{subnode.infoBean.selected}
"
valueChangeListener="#
"
onclick="this.form.submit()"/>
<h:outputText value="#
" />
</h:panelGroup>
</f:facet>
</t:tree2>
</h:panelGroup>
</t:column>
</h:dataTable>
</pre>