Details
-
Type:
Regression Bug
-
Status:
Closed
-
Priority:
Major
-
Resolution: Won't Fix
-
Affects Version/s: 6.0.12 EE, 6.1.0 CE RC1, 6.1.0 CE GA1, 6.1.1 CE GA2, 6.1.20 EE GA2, 5.2.X EE
-
Fix Version/s: --Sprint 11/12, 6.2.0 CE M2
-
Component/s: WCM, WCM > Web Content Administration
-
Environment:Tomcat 6.0 + MySQL 5. Firefox 4.0.1. 5.2.x Revision 83112.
Tomcat 6.0 + MySQL 5. Firefox 4.0.1. 6.0.x Revision 83110.
Tomcat 6.0 + MySQL 5. Firefox 4.0.1. 6.1.x Revision 83110.
-
Branch Version/s:5.2.x, 6.0.x
-
Fix Priority:4
-
Similar Issues:
Description
When creating a content which has 2 levels depth, it is not possible to access to the second level.
See attached a structure sample, and template sample. Result is here:
{name=Detail_SousCompetence, data=
Detail_SousCompetence1
, type=text_area, options=[], Nom_Contact={name=Nom_Contact, data=Nom_Contact 1, type=text, options=[], Fonction_Contact=
, Prenom_Contact=
{name=Prenom_Contact, data=Prenom_Contact 1, type=text, options=[]}, Email_Contact=
{name=Email_Contact, data=Email_Contact 1, type=text, options=[]}, Telephone_Contact=
{name=Telephone_Contact, data=Telephone_Contact 1, type=text, options=[]}}}
The Nom_Contact field is not an array, allthough it is a repeatable element in the structure.
After som researches, I found out that the problem is localized here in the code :
/portal-impl/src/com/liferay/portlet/journal/util/VelocityTemplateParser.java
Line 75, the call to extractDynamicContents() returns only the first node instead on all children

Hi frinux,
Thank you for your report. I was able to reproduce this issue in Liferay Portal 6.0.11 and our current trunk head. I will update this ticket to reflect this issue.
1. Create a structure with structure.xml in attachment.
2. Create a template with template.xml.
3. Create a web content with the structure and template.
4. Click "Action" button, then preview it.