Peter Hinds created RF-12776:
--------------------------------
Summary: Nested rich:dataTable causes rows in parent rich:dataTable to not
get displayed
Key: RF-12776
URL:
https://issues.jboss.org/browse/RF-12776
Project: RichFaces
Issue Type: Bug
Security Level: Public (Everyone can see)
Components: component-tables
Affects Versions: 3.3.3.Final
Environment: Machines: AIX 6100, Windows XP
Application Server: WebSphere 8.0
Jave EE: 1.6
JSF: 1.2
Reporter: Peter Hinds
Deeply nested {{rich:dataTable}} can cause rendering issues in its parent
{{rich:dataTable}}
This is observed in richfaces 3.3.3, unfortunately the project I am working on is
restricted to this version because we have to use jsf 1.2 due to a requirement to be able
to run on a java 1.5 application server in future.
For the following description please reference the code I have added to 'steps to
reproduce' section.
I created 4 nested datatables (see dataTableIssue.xhtml), where each datatable is used to
display an object in the following hierarchy:
{{Farm}}
{{--Field}}
{{ --Animal}}
{{ --Tag}}
Each item in the hierarchy has three children (so each farm has 3 fields, each field has 3
animals and each animal has 3 tags). From the code in dataTableIssue.xhtml, I would expect
the tables to be displayed as follows:
{{farm1}}
{{--field1}}
{{ --animal1}}
{{ --tag1}}
{{ --tag2}}
{{ --tag3}}
{{ --animal2}}
{{ --tag4}}
{{ --tag5}}
{{ --tag6}}
{{ --animal3}}
{{ --tag7}}
{{ --tag8}}
{{ --tag9}}
{{--field2}}
{{ --animal4}}
{{ --tag10}}
{{ --tag11}}
{{ --tag12}}
{{ --animal5}}
{{ --tag13}}
{{ --tag14}}
{{ --tag15}}
{{ --animal6}}
{{ --tag16}}
{{ --tag17}}
{{ --tag18}}
{{--field3}}
{{ --animal7}}
{{ --tag19}}
{{ --tag20}}
{{ etc.}}
However, what is actually rendered is the following (i.e. the animals in field1 are not
listed):
{{farm1}}
{{--field1 (the animals are not listed for this field)}}
{{--field2}}
{{ --animal4}}
{{ --tag10}}
{{ --tag11}}
{{ --tag12}}
{{ --animal5}}
{{ --tag13}}
{{ --tag14}}
{{ --tag15}}
{{ --animal6}}
{{ --tag16}}
{{ --tag17}}
{{ --tag18}}
{{--field3}}
{{ --animal7}}
{{ --tag19}}
{{ --tag20}}
{{ etc.}}
I can see from the debug that the backing bean has the correct data so I know it's not
a data issue.
If I remove the last nested dataTable from the jsf page (marked 'TROUBLESOME
TABLE' in dataTableIssue.xhtml), then it will render correctly. For example it will
display as:
{{farm1}}
{{--field1}}
{{ --animal1}}
{{ --animal2}}
{{ --animal3}}
{{--field2}}
{{ --animal4}}
{{ --animal5}}
{{ --animal6}}
{{--field3}}
{{ --animal7}}
{{ etc.}}
--
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