Fórum
Deleting repeatable field
Oliver Joggerst, modificado 15 Anos atrás.
Deleting repeatable field
New Member Postagens: 2 Data de Entrada: 09/03/09 Postagens Recentes
Hi,
i am using Liferay 5.2.1 Professional and i have a dynamic structure with a repeatable field that has a non repeatable child field. When i create the article out of that structur everything works fine adding new repeatable fields to the article, but if i want to delete a repeatable field from the article by pressing the delete button beside the repeatable field i get an empty article just as i would start to create one. The error is logged as follows:
07:18:54,172 ERROR [LocaleTransformerListener:112]
com.liferay.portal.kernel.xml.DocumentException: Error on line 1 of document : The element type "root" must be terminated by the matching end-tag "</root>". Nested exception: The element type "root" must be terminated by the matching end-tag "</root>".
at com.liferay.portal.xml.SAXReaderImpl.read(SAXReaderImpl.java:377)
at com.liferay.portal.xml.SAXReaderImpl.read(SAXReaderImpl.java:365)
at com.liferay.portal.xml.SAXReaderImpl.read(SAXReaderImpl.java:382)
at com.liferay.portal.kernel.xml.SAXReaderUtil.read(SAXReaderUtil.java:150)
at com.liferay.portlet.journal.util.LocaleTransformerListener.replace(LocaleTransformerListener.java:80)
at com.liferay.portlet.journal.util.LocaleTransformerListener.onXml(LocaleTransformerListener.java:49)
at com.liferay.portlet.journal.model.impl.JournalArticleImpl.getContentByLocale(JournalArticleImpl.java:67)
at org.apache.jsp.html.portlet.journal.edit_005farticle_jsp._jspService(Unknown Source)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:98)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
.......
Thanks for any help!
-oliver
i am using Liferay 5.2.1 Professional and i have a dynamic structure with a repeatable field that has a non repeatable child field. When i create the article out of that structur everything works fine adding new repeatable fields to the article, but if i want to delete a repeatable field from the article by pressing the delete button beside the repeatable field i get an empty article just as i would start to create one. The error is logged as follows:
07:18:54,172 ERROR [LocaleTransformerListener:112]
com.liferay.portal.kernel.xml.DocumentException: Error on line 1 of document : The element type "root" must be terminated by the matching end-tag "</root>". Nested exception: The element type "root" must be terminated by the matching end-tag "</root>".
at com.liferay.portal.xml.SAXReaderImpl.read(SAXReaderImpl.java:377)
at com.liferay.portal.xml.SAXReaderImpl.read(SAXReaderImpl.java:365)
at com.liferay.portal.xml.SAXReaderImpl.read(SAXReaderImpl.java:382)
at com.liferay.portal.kernel.xml.SAXReaderUtil.read(SAXReaderUtil.java:150)
at com.liferay.portlet.journal.util.LocaleTransformerListener.replace(LocaleTransformerListener.java:80)
at com.liferay.portlet.journal.util.LocaleTransformerListener.onXml(LocaleTransformerListener.java:49)
at com.liferay.portlet.journal.model.impl.JournalArticleImpl.getContentByLocale(JournalArticleImpl.java:67)
at org.apache.jsp.html.portlet.journal.edit_005farticle_jsp._jspService(Unknown Source)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:98)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
.......
Thanks for any help!
-oliver
Pablo Iglesias, modificado 15 Anos atrás.
RE: Deleting repeatable field
New Member Postagens: 13 Data de Entrada: 13/03/09 Postagens Recentes
Hi Oliver,
Maybe if you look at the XML template you see that it's not closed by </root>. That has to be at the end of the file.
I also have a question for you: how do you iterate over reapeatable elements using Velocity templates?
Thanks!!
Maybe if you look at the XML template you see that it's not closed by </root>. That has to be at the end of the file.
I also have a question for you: how do you iterate over reapeatable elements using Velocity templates?
Thanks!!
Amos Fong, modificado 15 Anos atrás.
RE: Deleting repeatable field
Liferay Legend Postagens: 2047 Data de Entrada: 07/10/08 Postagens Recentes
Oliver,
I think Pablo has got it.
Pablo,
See this blog: http://www.liferay.com/web/bfarache/blog/-/blogs/web-content-enhancements
I think Pablo has got it.
Pablo,
See this blog: http://www.liferay.com/web/bfarache/blog/-/blogs/web-content-enhancements
Pablo Iglesias, modificado 15 Anos atrás.
RE: Deleting repeatable field
New Member Postagens: 13 Data de Entrada: 13/03/09 Postagens Recentes
Thank u Amos!
I resolved my problem just yesterday. But thank u anywhere, I've learn more things in that article, about that solutions and so on.
See u!
I resolved my problem just yesterday. But thank u anywhere, I've learn more things in that article, about that solutions and so on.
See u!
Fabio F, modificado 14 Anos atrás.
RE: Deleting repeatable field
New Member Postagens: 8 Data de Entrada: 09/03/09 Postagens Recentes
Hi,
how have you solved this issue? I've same problem.
Fabio
how have you solved this issue? I've same problem.
Fabio
Fabio F, modificado 14 Anos atrás.
RE: Deleting repeatable field
New Member Postagens: 8 Data de Entrada: 09/03/09 Postagens RecentesFabio F:
Hi,
how have you solved this issue? I've same problem.
Fabio
Ok, I've found the solution:
http://issues.liferay.com/browse/LPS-2624